avaneeshtripathi / react-dice-roll

A highly customizable dice roll package built in react.
https://www.npmjs.com/package/react-dice-roll
34 stars 23 forks source link

Hide dice faces that are not visible #16

Open oyatek opened 1 year ago

oyatek commented 1 year ago

When dice is rolled, small sharp corners are visible around it because it's a 3d shape and even though the corners of the visible face are rounded, those faces that are not visible can be seen as corners. The issue can be resolved by hiding faces that are out of sight. I've done it locally using onClick / onRoll event handlers and some custom CSS properties.