SASS random() and circle animation
I decided to move my CSS playground to the CodePen, and this is the first one I made.
Idea came to me while I was riding on a bus, and I might use it on this blog, as a part of it's redesign.
This is CSS only animation (I used JS to create 50 elements though). And you can see the usage of SASS
random() will return random integer between 1 and
n is the number you pass to it. Default param is 100.
Note that random does not return 0.
To get different random ranges just add or subtract your base.
This will return number between 11 and 20.
Same thing with negative numbers, this one covers the range between -10 and 10.
Something to have in mind, new random numbers will be generated on every SASS compilation. But once generated, CSS will stay static, until the next compilation.