Jump to content
Search Community

Animation based on Browser height

Guest Pusher
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

Hi there,


I am starting from scratch here so apologies. 


I have been asked by a client to trigger an animation (similar to a banner ad) based on the browser position.


It would be great if the animation then reversed on scroll up. :)


Two Q's...


1. Is this possible with Greensock?

2. Where do i start?


My Codepen example is an attempt at recreating the site that the animation will eventually live on.


Thank you so much for any help,



See the Pen LpXVQZ by phillip_vale (@phillip_vale) on CodePen

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