Loading video...

Video Failed to Load

Go Home

😎👋As promised, I've recreated it on @codepen ✨ I loved making it & animating the gradients🌈 Using: - CSS keyframes ✅ - CSS custom properties ✅ - CSS variables ✅ - NO JS ❌ Link: CrossBrowser incoming ➡️ #css #FrontEndDev

103,364 views • 3 years ago •via X (Twitter)

10 Comments

Luky - A$AP Luky's profile picture
Luky - A$AP Luky3 years ago

There's some differences from the original design of @aleksliving but I think I got the overall idea! Thanks for the inspiring tweet buddy 🤝

Felix De Montis 🍀's profile picture
Felix De Montis 🍀3 years ago

@CodePen This looks crazy, love it

Luky - A$AP Luky's profile picture
Luky - A$AP Luky3 years ago

@CodePen Thanks Felix 🫶

Maslow's profile picture
Maslow3 years ago

@CodePen Damn you good bro. Next level CSS skills 🙏

Luky - A$AP Luky's profile picture
Luky - A$AP Luky3 years ago

@CodePen Haha thanks man, appreciate it, if you dissect the code there’s nothing too complicated, really 😊

tech bloke 's profile picture
tech bloke 3 years ago

@CodePen @TheVunderkind

Aleks's profile picture
Aleks3 years ago

Dude this is awesome! You’re nuts 😍

Luky - A$AP Luky's profile picture
Luky - A$AP Luky3 years ago

Ah! Thanks man, couldn’t get closer to what you designed, really glad you like the result 🙌

マックス👽✨'s profile picture
マックス👽✨3 years ago

@CodePen I love this!

Luky - A$AP Luky's profile picture
Luky - A$AP Luky3 years ago

@CodePen Thanks man! 🙌

Related Videos

CSS variables are live and they are POWERFUL. Now Live on Product Hunt 🚀 ➡️ Create a design system "So you can stay consistent and build much quicker." Define global styles like colors, gradients, sizes, and box shadows. ➡️ Use your variables everywhere "So you never have to manually enter a border color again." You're not limited to just sizes, colors, and font families. Use variables in gradients, box shadows, transforms, and more! ➡️ Start with libraries like Open Props, expertly crafted CSS variables "So you can use a tried and true system, and so we can standardize our Projects." Because there are no abstractions, you can use existing CSS variable libraries like Open Props, an expertly crafted library of CSS variables, and the recommended starting point in Webstudio. ➡️ Create complex micro-interactions "So when you hover a link, you can change any children's styles." CSS variables go beyond reusability! You can define variables anywhere in the navigator, such as on a link, and modify the variables on hover. Then, you can use those variables on the children to create complex micro-interactions! ➡️ Design and build simultaneously "So when deciding that perfect border color, you can arrow through all your options." Experimenting on the canvas just got a whole lot better. Now, you can arrow through your variables and see them rendered on the canvas to see which works best. ➡️ Change variable by breakpoint "So you can make the variables look great, no matter the screen size." CSS variables in Webstudio use the same UI as the rest of your styles, enabling breakpoints to work the same way. ✨ Building with design systems gives a HUGE boost in speed, consistency, and maintainability.

Webstudio

15,497 views • 1 year ago

Future CSS Tip! 🍏 You can create this Apple-style photo scroller by combining CSS scroll-driven animations and CSS scroll-snap 😍 Peep those changing captions 👀 No JS! img { animation: highlight both linear; animation-timeline: view(inline); 👈 Horizontal animation-range: cover 0% cover 50%; 👈 Finish } @ keyframes highlight { 50% { translate: 0 0; scale: var(--starting-scale); 👈 props opacity: var(--starting-opacity); 👈 } 100% { translate: 0 0; scale: 1; opacity: 1; } } Without the animation support, you get a standard unordered list containing some s 🤙 How do we swap the captions though? The "trick" is to use position: absolute on the figcaption and animate their opacity based on the ViewTimeline of their parent list item 😎 figcaption { animation: show both linear; animation-timeline: --list-item; } @ keyframes show { 0%, 45%, 55%, 100% { opacity: 0; } 50% { opacity: 1; } } li { view-timeline-name: --list-item; view-timeline-axis: inline; 👈 important! } The parent of the scroll track uses position: relative so all the captions sit in the middle even though they are in the right place for the markup 🙌 The last bit is the scroll-snap 🤙 Not much to it at all. Wrap the list and make it scrollable. Then add scroll-snap-type .wrapper { scroll-snap-type: x mandatory; overflow-x: scroll; } Then make sure each list item has scroll-snap-align set on it li { scroll-snap-align: center; } That's it! Pretty cool demo to put together and see how to do this stuff with these APIs 🤓 A lot of cool little tricks to pick up for writing your CSS! ⭐️ CodePen.IO link below! 👇

jhey ʕ•ᴥ•ʔ

234,561 views • 2 years ago