Project based Learning using HTML CSS JS- Day 20

Project based Learning using HTML CSS JS- Day 20

·

1 min read

Today's day 20 Goal is to build a css hover me transition. In this blog I will explain how to modify the hover effect.

HTML

-

CSS

1. how to display an element using pseudo element?

display: block;
background-color: rgb(93, 104, 231);
position: absolute;
top: 88px; right: 0; bottom: 0; left: 0;

2. How to transform the element from zero scale?

transform: scale(0);

3. How to add animation ease?

transition: transform .3s ease;

4. How to add hover effect?

h1:hover::before{
    transform: scale(1);
}

JavaScript

-

Conclusion

  1. Display an element using pseudo element.

  2. Transform the element from zero scale.

  3. Add animation ease.

  4. Add hover effect.

Successfully created hover effect with styling.

My Code:

day 20 css hover me 1.png

day 20 css hover me 2.png

Author: Dheeraj.y