Jump to content
Search Community

Scroll to #div and +=

zozo test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hi Guys, 

I have this that is working :

gsap.to(window, {duration: .5, delay: .5, scrollTo:'#post_preview_'+this.post.id, ease: 'Power1.easeInOut'})

I would like to do something like

gsap.to(window, {duration: .5, delay: .5, scrollTo:'#expertises_post_preview_'+this.post.id+' +=100', ease: 'Power1.easeInOut'})

But It's not working. Is there a way to scroll to 100px above my div ? Thanks ! 

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