Skip to content

martik69420/ROLL-A-DICE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROLL-A-DICE

A simple 6-sided die rolling website using HTML, CSS, and JS.

How it works

This project simulates rolling a six-sided die. Instead of showing just a number, the result is displayed using a visual dice face for better feedback. Each roll is animated to feel more like a real dice roll, and previous rolls are saved in a history list.

When you press 'ROLL THE DICE', the opacity changes, showing that you can't use it while the dice is rolling. It has a little animation that cycles through each die number, then randomly stops on one of them. It gets added to your history of past rolled die, which you can clear using the 'CLEAR HISTORY' button. Each button has a special style/animation when you hover over it, and it also changes your cursor to indicate it's clickable.

Possible future improvements

  • 3d dice actually rolling
  • Using the spacebar to roll instead of pressing the button itself
  • Multiple die at the same time

Images of code & the website itself with a link

Code Code-Image1 Code-Image2 Code-Image3

Website Website-Image1

Link Test the website here!!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors