Day # 26: Checkboxes as Tiles



After my last experience styling checkboxes, I realized that I still need to practice more. I strongly believe that the more you work at something that you initially found difficult, the better you get at doing that sort of task.

That being said, I decided to style the checkboxes of this website as tiles. Also, I decided to create an animation whenever the visitor hover on each one of these “cards”.

The key here was to add two icons for the top right corner of the card. One for when the card is not selected and another one when it is. To achieve this, I had to recur to using the after pseudo element in CSS of after. That way I could add additional content just on the CSS without having the necessity to do it on HTML.

A final extra touch was to add color to the border of the card that has been selected. That way the visitor can recognize immediately which one of those cards has been selected.

Comments

Popular posts from this blog

Day # 19: Checkbox animation

Day # 12: Typewriter Effect

Day # 53: Icon text