+ 1

How to animate On scroll using css and javascript?

Hello , suppose you have a website. You want to animate the top section of your home page. At the top section you have a h1 item. You want if some one scroll down 75% h1 one tag will be disappear with some animation like fade-in-out. And you want to display something else on that section. How you will do it with CSS and Javascript. If you can please help me. I badly need to learn this, I can't move forward without learning this.

24th Sep 2018, 2:34 AM
Nayem
3 Réponses
24th Sep 2018, 6:38 AM
Calviղ
Calviղ - avatar
0
If you page able to scroll down 75% of the total page height, most likely the top section h1 is not visible on page any more?
24th Sep 2018, 4:21 AM
Calviղ
Calviղ - avatar
0
actually I didn't mean 75% of total page height I mean section height.
24th Sep 2018, 5:48 AM
Nayem