Pure CSS Apple TV parallax effect (picturepan2.github.io)
6 years ago from Yan Zhu
6 years ago from Yan Zhu
"pure CSS" - requires 5 additional divs.
jk its nice.
Pretty sweet! Could be made even smoother with some easing on the gradients and adding more hit area for top middle, right middle, bottom middle, and left middle. Regardless—love it.
Thank you. Yes, I think it is a tradeoff between smoothness/fidelity and code complexity. At least it works without JS. Anyone can improve it.
Btw, more Pure CSS components are coming to Spectre.css.
Looks like it's popping out of my screen. Nicely done, but as others have stated. Really could use some easing.
This is great, but I'm not sure "parallax" is the right term to use here...?
Where's the CSS though?
I just hacked it together in a CodePen:
Designer News
Where the design community meets.
Designer News is a large, global community of people working or interested in design and technology.
Have feedback?
Login to Comment
You'll need to log in before you can leave a comment.
LoginRegister Today
New accounts can leave comments immediately, and gain full permissions after one week.
Register now