CSS - JS - Dice roller

luts(55)
Published in
#estonia
Words
80
Reading
1 min
Listen
Play
7y

I came up with an idea to code a dice roller. Since I haven't introduced myself too much to Javascript yet, I googled how to do the random rolling part. I made the cool looking background with linear-gradient property and the dice roller will do its job when you hover over the button.

The roller ended up like this:

I ended up with
14 lines of HTML
37 lines of CSS
14 lines of JS

Check out the project HERE

CSS - JS - Dice roller | Ecency