Jump to content
Search Community

Path To Bezier Responsive scaling

anishpixellabs test
Moderator Tag

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 anishpixellabs  :)

 

Welcome to the forum.

 

Your link is 404 so I can't see your animation.

 

The easiest way to get a responsive 'path following' animation is to build the whole thing in the SVG. Having a regular DOM element following a SVG path can certainly work, but if you have a child element of the SVG follow the path, the entire SVG will scale up and down perfectly and you won't have to worry about it. Just my two cents worth.

 

Happy tweening.

:)

Link to comment
Share on other sites

Apologies, heres is the working link : http://foodconnections.clients.pixel-labs.co.uk/npd-services/exporting/

 

All aspects of the animtation are SVG's, the plane and the line SVG site inside a container with eachother.

 

Are you saying I should have the line and the plane as one SVG? Never thought of it that way - will give that a try.

 

Hi anishpixellabs  :)

 

Welcome to the forum.

 

Your link is 404 so I can't see your animation.

 

The easiest way to get a responsive 'path following' animation is to build the whole thing in the SVG. Having a regular DOM element following a SVG path can certainly work, but if you have a child element of the SVG follow the path, the entire SVG will scale up and down perfectly and you won't have to worry about it. Just my two cents worth.

 

Happy tweening.

:)

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...