Pretty accurately described by the title, the 3d effect and animation is done in CSS, with a bit of javascript to make them roll. Link to an example.
Link in the files diceStyle.css and dice.js.
The files 1player.html and 2player.html show examples of use.