Jump to content
Search Community

how to apply fade out effect after 5 scrolls

sumith test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hey @sumith,

 

Some pointers:

 

//create a timeline instance
var tl = new TimelineMax()
//the following two lines do the SAME thing:
.add( TweenMax.to("#id", 2, {x:100}) );
.to("#id", 2, {x:100}); //shorter syntax!

By default, animations are inserted one-after-the-other, but it's easy to control precisely where things go using the position-parameter.

 

I still do not understand, what do you mean by 'scroll 5 time', but here's a fork of your case:

 

See the Pen NWKNQwW by mikeK (@mikeK) on CodePen

 

Happy tweening ...

Mikel

 

 

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

hey @mikel 

thanks for your help.

I find one issue when i jump to next section using mouse scroll, images are fading but scaling animation

 of section first is stop. is there anyway images fading with scaling effect on mouse scroll

 

"I still do not understand, what do you mean by 'scroll 5 time'"  it means images effect show on while scrolling not on page load and first scroll.  

 

please find the attachment video

https://drive.google.com/file/d/1UEU1xBhovlgiWiL91hvqwLhP1AqP45sQ/view?usp=sharing

 

 

best regards

sumith

 

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...