Random Wavy Dividers
7 octobre 2026 à 02:00
After the blob shapes, here is another shape we can build using random() to create a unique user experience. A fancy wavy divider!

After the blob shapes, here is another shape we can build using random() to create a unique user experience. A fancy wavy divider!

We can get the number of siblings using sibling-count() but we cannot get the number of children yet. There is a proposal for a children-count() function, but until we get an official release, we can hack it using Scroll-Driven Animations.
First, you add an extra element inside your container (That's one drawback of the method)