diceroll
diceroll copied to clipboard
An interactive dice roller targeting smartphones with the Web Sensor API.
Math.random() has a very uniform distribution. Use `crypto.getRandomValues()` instead.
Currently the dice "snaps" to a face once the spinning animation is stopped, it would be great if the transition between those 2 states could be as seamless as possible....
 The background shadow element should be bound to the cube's 3D movements so it doesn't appear behind it on some angles.