Jump to content


How do i get my svg's to fill in the window height like images do with this codepen animation?

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

Hello, I found this awesome greensock example sending clouds randomly across the screen. You will notice the clouds take on the full height of the viewport. If you start with a smaller height and than increase it. It will start sending clouds into that available space. 

Here is an example of that. https://codepen.io/osublake/pen/4f849ca24bb5f1050a69651a6e82f271 - this codepen is using image files.

However I need to use SVG files. When i replace the images with SVG's you will notice that the SVG's stick to the top of the viewport. 

Here is an example of that:  - this codepen is using SVG's

How do i get my SVG version of this animation to span the available height like the image version does?

Any help would be much appreciated!

See the Pen LXYKbM by PortalPacific (@PortalPacific) 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.