Lea Verou 7.07.2020

The Cicada Principle, revisited with CSS variables

Przeczytaj oryginał

This article revisits the Cicada Principle for web design, explaining how using prime numbers in CSS nth-of-type selectors with CSS variables can create organic-looking randomness in repeating elements. It provides a practical example of applying this technique to randomize code snippet angles using clip-path and CSS custom properties.

The Cicada Principle, revisited with CSS variables

komentarzy

Brak komentarzy

Bądź pierwszy, który podzieli się swoimi myślami!

Rozszerzenie przeglądarki

Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki

Tydzień

No top articles yet