Jump to content


Resize container div

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 big GSAP newbie here. Im using the angularjs framework and I fetch data from a REST service, also flexbox as a layout grid manager,


I have a container div with a loading image inside of it.


When the data is loaded I ng-hide the loading image and show the data. But is it possible to animate the containers div height as soon as the data is available?


So first the div has the height of the loading image, and afterwards the height of the text data returned from the rest service.


I dont know the height untill the data is returned so im kind of puzzled here. 


Any tips on how to handle this?





Link to comment
Share on other sites

Hey dngrsn and welcome to the forums!


You could take a look at this post or this one.


To help much more than that we'd have to see a bit of your setup :)

  • Like 6
Link to comment
Share on other sites

Thank you ZachSaucier, the solutions you provided were exactly what I was looking for.


Much appreciated.



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