Video wird geladen...
Video konnte nicht geladen werden
Little CSS Christmas tree for the holidays 🎄 Powered by CSS custom properties 💪 ~100 lines of CSS The trick is in the animation-delay ✨ For example; <div class=🔴 style="--index: 2;"> .🔴 { animation-delay: calc(var(--index) * -0.2s); } CodePen.IO link below! 👇
374,621 Aufrufe • vor 3 Jahren •via X (Twitter)
10 Kommentare

Here's that @CodePen link! 🎅🏻 Have a play with the custom properties set on :root to see how the behavior changes 🤓 You could make the CSS smaller, add layers, more baubles, etc. Rustled this one up over breakfast after seeing something in the mall 😅

@CodePen Holy mother of Christmas. You never cease to amaze me!

@CodePen "Mother of Christmas" 😅 Happy Holidays my friend! 🎄

@TSplone @CodePen Nice, I will make a SwiftUI version

@CodePen I don't know if you did it in purpose but you have an interesting effect there. Try asking people in which direction are the lights rotating 😁🎄

@CodePen This is insane 😳👏🏼

@smashingmag @CodePen the "over breakfast" hurt my soul :(

@CodePen Hi there! What a great CSS Christmas tree! I love seeing how creative people can get with the power of CSS and custom properties. Thanks for sharing your amazing work and making this holiday season a little brighter!

@haroldao_ @CodePen really cool, makes me wanna try this 👏

@CodePen I remember my first algorithm course at university 9 years ago, I had to make a christmas three with loops and conditions 😊
