Jump to content
Search Community

How to enable the div once target end

Narendra Verma test
Moderator Tag

Recommended Posts

30 minutes ago, Visual-Q said:

I'll break my rule on answering scrollMagic questions just this once:

You heathen! ;)

 

But seriously why not use ScrollTrigger (the official GSAP scroll plugin) instead? It's better in every way :) 

See the Pen YzqYome?editors=0010 by GreenSock (@GreenSock) on CodePen

 

To learn more about it see the ScrollTrigger docs.

  • Like 3
Link to comment
Share on other sites

9 minutes ago, hybreeder said:

I want to know what changes you have done.

Whether you use scrollMagic(blasphemy) or scrollTrigger as Zach showed:

 

The header was set intitially to invisible with autoAlpha:0, you can just set this directly in the css by the way, and then only the specific trigger element .show-menu is targeted to show the header with  autoAlpha:1

 

The loops you created over all the sections and mutliple timelines were unnecessary and not working correctly.

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...