Jump to content


Gsap, Responsive Logo with svg and splitText

Go to solution Solved by OSUblake,

Recommended Posts

The function 'updateSize' makes a jump when display size height (h) = display size width (w).

How can I rewrite the function 'updateSize' with Gsap to give a soft, linear scaling from desktop to mobile ?

Can I use Gsap easing ?



See the Pen MWEKEqo by steinarV (@steinarV) on CodePen

Link to comment
Share on other sites

  • Solution

Just animate the values...

gsap.to(svgbox, { scale: 1 });
gsap.to(wrapper, { marginTop: 0 });
gsap.to("html", { "--mySize": svgbox.offsetWidth * 0.1 + 'px'})


Although animating stuff during resize is probably not the best idea as there is going to be a lot of layout thrashing as the browser has to recalculate the position of everything.


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