Dice Sim

Dice qty: 1 2
YOU ROLLED A _ and a _
*** Keyboard Controls: Press 'R' to roll or just click/tap the dice.


Roll the Dice(or 'die,' whatever)! Just click roll. No SVG's involved. Just CSS. For the dots, I defined 6 variables containing circular divs with absolute placements(defining the look of the rolled number), so then the 'innerHTML' of the div would be that of the number that was rolled. Enjoy! Feel free to inspect the code and use however you like with no attribution.