Video wird geladen...
Video konnte nicht geladen werden
Not many lines for a CSS parallax effect either 🤙 ul { scroll-padding-inline: calc(50% - var(-card) * 0.5); } img { animation: para; animation-timeline: --item; } @keyframes para { cover 100% { translate: calc(100% - var(--card)) -50%; }}
274,260 Aufrufe • vor 2 Jahren •via X (Twitter)
11 Kommentare

Love a little challenge like these when they pop up on the timeline 🤓 Of course, a few more lines are needed in total but these are the main parts of getting it working 🤙 --item is an inline view timeline on the parent li { view-timeline: --item inline; }

Here's the @CodePen link! 🚀 Chrome for now but I can add a little GSAP to cover if you need it 🤙 Big fan of this scroll-padding-inline trick though 🏅

not working, can you send full codepen link?

Yeah, I'll ping it in. Giving it a little update 🤙

Brother your css skills are next level 🤯🤯🤯 learninng everyday with your content, huge thanks

This is gorgeous

Thanks! Tonight's Sudoku 😄

I feel like a successful YouTube channel could be doing the same UI in CSS Swift UI and Jetpack Compose UI.

Yeah – I need to invest some time in the YouTube channel again 💯

This one looks super cool! Not less, not too much. Thanks for sharing sir 🫡🙌

Thanks Rohit 🤙
