Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 403 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 403 Bytes

#Magic-eight-ball

CSS box-shadow and background gradients used to create eight-ball, and borders to create triangle.

CSS transform used to animate the triangle and text answers.

Math.floor & Math.random used in JS to select answer from array and function declaration to add/remove animation classes for the answer text.

JS logic added to ensure real question asked before providing answer.