The @property trick that makes sibling-index() more useful

Kevin Powell Official Youtube Channel by 2 min read 509x views
The @property trick that makes sibling-index() more useful

Share Post

The @property trick that makes sibling-index() additional useful

Staggering a card's children as fine as the cards is trickier than it looks. Registering a tradition asset locks in the computed `sibling-index()` value so all kid can use it. πŸ‘‰ Learn how CSS really plant alongside the new Writing resilient CSS component in CSS Demystified: https://thecascade.dev/courses/css-demystified/?utm_source=youtube&utm_medium=social&utm_campaign=regular-video βœ‰ Keep up to date alongside everything I'm up to https://www.kevinpowell.co/newsletter πŸ’¬ Come suspend out alongside another devs in my Discord Community https://discord.gg/nTYCvrK ⭐ Are you a beginner? HTML & CSS for complete beginners is for you: https://learn.kevinpowell.co πŸŽ“ Start penning CSS alongside confidence alongside CSS Demystified: https://cssdemystified.com πŸš€ Already mastered CSS? Check out my advanced course, Beyond CSS: https://www.beyondcss.dev/ --- Help assistance my channel πŸ‘¨β€πŸŽ“ Get a course: https://www.kevinpowell.co/courses πŸ‘• Buy a shirt: https://cottonbureau.com/people/kevin-powell πŸ’– Support me on Patreon: https://www.patreon.com/kevinpowell or through YT memberships: https://youtube.com/@kevinpowell/join --- πŸ§‘β€πŸ’» My editors: In most videos, I’m using CodePen these days: https://codepen.io/ - alongside High Contrast Dark theme and the font Commit Mono And if not CodePen, afterward I’m likely using Zed: https://zed.dev/ alongside the theme Ayu Dark, and the font ZedMono In older videos, I was using VS Code - https://code.visualstudio.com/ alongside the theme One Dark Pro Var, and the font Cascadia --- ⌚ Timestamps: 00:00 - Intro 00:45 - A norm stagger alongside sibling-index() 03:13 - Registering the tradition property 05:13 - Fixing the stagger --- I'm on several another places on the net too! If you'd akin a rearward the scenes and previews of what's coming up on my YouTube channel: Bluesky: https://bsky.app/profile/kevinpowell.co Codepen: https://codepen.io/kevinpowell/ Github: https://github.com/kevin-powell --- And any you do, don't ignore to keep on making your border of the net fair a small bit additional awesome! #css

Other Article Kevin Powell Official Youtube Channel
↑
Close Right Ads
Close Left Ads