Basic fade-in animation
Workaround to avoid display: none problems.
Workaround to avoid display: none problems.
Have you ever played to Simon? That game where you have to memorize an incremental sequence of colors. Today I’m bring to you this famous game in ES6 using CSS transformations and animations. Open it in a new browser window or tab and stretch or shrink the area to see how the game is always visible, there are not scroll bar at all, pure responsiveness, enjoy the play 🙂
Code once, run everywhere: Simon Game in Google Play
Would you like to set up a cool basic transition for your buttons when the cursor is over them?
transition: all 0.5s ease-in-out;
Our CSS will change if the mouse is over the button.
i { box-shadow: 0 0 0 75px #E94F37 inset; color: white; } i:hover { box-shadow: 0 0 0 4px #E94F37 inset; color:#E94F37; }
We are filling up the element with an inner shadow (inset) and changing the font color.
Here a real example: