62070212 CSS Var and CalC (Branch 8527)
✨ SEDTHANUN CHONGCHETDEE
<html> <head> <title>Let's Start </title> <style> body{ background:#eee; margin:1em; font-family:sans-serif; font-size:0; } div{ --size:calc(100vw / 10); width:var(--size); height:var(--size); background:grey; border-radius:40%; display:inline-block; animation: ani calc(1s) calc(3.14s*var(--i)) infinite; background:hsl( calc(var(--sec)*90) ,calc(var(--i)*10%),50%); box-shadow: 1px 1px #888888; } @keyframes ani{ from { transform: scale(.4)); } to { transform: scale(0); } } </style> </head> <body> <section style="--sec:0"> <div style="--i:0"></div> <div style="--i:1"></div> <div style="--i:2"></div> <div style="--i:3"></div> <div style="--i:4"></div> <div style="--i:5"></div> <div style="--i:6"></div> <div style="--i:7"></div> <div style="--i:8"></div> <div style="--i:9"></div> </section> <section style="--sec:1"> <div style="--i:0"></div> <div style="--i:1"></div> <div style="--i:2"></div> <div style="--i:3"></div> <div style="--i:4"></div> <div style="--i:5"></div> <div style="--i:6"></div> <div style="--i:7"></div> <div style="--i:8"></div> <div style="--i:9"></div> </section> <section style="--sec:2"> <div style="--i:0"></div> <div style="--i:1"></div> <div style="--i:2"></div> <div style="--i:3"></div> <div style="--i:4"></div> <div style="--i:5"></div> <div style="--i:6"></div> <div style="--i:7"></div> <div style="--i:8"></div> <div style="--i:9"></div> </section> <section style="--sec:3"> <div style="--i:0"></div> <div style="--i:1"></div> <div style="--i:2"></div> <div style="--i:3"></div> <div style="--i:4"></div> <div style="--i:5"></div> <div style="--i:6"></div> <div style="--i:7"></div> <div style="--i:8"></div> <div style="--i:9"></div> </section> <section style="--sec:4"> <div style="--i:0"></div> <div style="--i:1"></div> <div style="--i:2"></div> <div style="--i:3"></div> <div style="--i:4"></div> <div style="--i:5"></div> <div style="--i:6"></div> <div style="--i:7"></div> <div style="--i:8"></div> <div style="--i:9"></div> </section> </body> </html>