Jump to content
Search Community

Controlling X and Y positions in GSAP

JimmyHopton test
Moderator Tag

Go to solution Solved by Diaco,

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,

 

I'm a designer by trade but I'm dipping my toe into the world of SVG animation, forgive me for the messy code!

 

What I'm trying to do is animate the individual elements of the SVG (Mountain1, Mountain2, Mountain3 and Flag).

 

I'm trying to clear the stage by moving all of these elements downwards out of sight, I want them to pop-up into the scene. I've already applied a clipping mask FYI.

 

Any help on this will be hugely appreciated! 

 

Thanks,

 

Jimmy

See the Pen EVbBMX by JimmyH (@JimmyH) on CodePen

Link to comment
Share on other sites

Hi Jimmy :),

 

Is that what you are trying to achieve?: 

See the Pen rOpNKM by PointC (@PointC) on CodePen

 

Looks like there is a piece of the flag (a shadow?) that isn't in the group. Otherwise, that should get you started.

 

EDIT: PS I removed all the head elements and script tags from the CodePen (it doesn't need it) and loaded jQuery through CodePen for you. :)

  • Like 3
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...