Jump to content
Search Community

Gsap, Responsive Logo with svg and splitText

SteinarvDesign test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

  • 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.
×
×
  • Create New...