Jump to content
Search Community

Scroll zoom in image and text change

Sukru test
Moderator Tag

Recommended Posts

13 minutes ago, OSUblake said:

Do you mean a new image in the exact same place, or it unpins and have the same effect in another section?

 

yes i am talking about the new image in the same location as you said

Link to comment
Share on other sites

Well you didn't have the extra stuff in your demo, but you would just continue on with the timeline. It might be easier if you just create a separate timeline and just add it to the main one. I'm guessing you will probably need to do some absolute positioning to overlay the next content over the original.

 

let tl2 = gsap.timeline()
  .set("#intro .background", { opacity: 0 }) // hide the previous background

  ...

  .to('#intro .background-2', {
    scale: 2.5,
    duration: tl2.duration(),
    ease: 'power1.inOut'
  }, 0);


introTL.add(tl2);

 

Link to comment
Share on other sites

2 hours ago, OSUblake said:

Well you didn't have the extra stuff in your demo, but you would just continue on with the timeline. It might be easier if you just create a separate timeline and just add it to the main one. I'm guessing you will probably need to do some absolute positioning to overlay the next content over the original.

 

let tl2 = gsap.timeline()
  .set("#intro .background", { opacity: 0 }) // hide the previous background

  ...

  .to('#intro .background-2', {
    scale: 2.5,
    duration: tl2.duration(),
    ease: 'power1.inOut'
  }, 0);


introTL.add(tl2);

 

Hi, do you have a chance to apply it to the project in the codepen, i could not solve it :(

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