Jump to content
Search Community

please help html5 lineto with tweenlite

Asteroids 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,

 

I tried the technique discussed in this forum post:

 

http://forums.greensock.com/topic/8510-animating-svg-paths-within-a-timeline/#entry33350

 

But unfortunately doesn't work on a polyline converted to a path using Adobe Illustrator, it works only on curved paths. Why? I have no idea, SVG and canvas aren't my strong points so my knowledge is quite limited, perhaps another user could chip in.

 

This sample is a curved line and as you can see a polyline converted to a path doesn't works:

See the Pen EFxvl by rhernando (@rhernando) on CodePen

 

Maybe you could try the native SVG animate function as suggested here:

http://stackoverflow.com/questions/9036647/animating-a-polylines-appearance-using-svg-animate

 

Rodrigo.

Link to comment
Share on other sites

Unfortunately there aren't really any technologies or workflows that make what you want to do easy or intuitive. Are you using SVG? Canvas? 

 

It can take a very long time just wrap your head around the basics of SVG and Canvas and of course their are a bunch of other libraries that you can use to interact with SVG or canvas and then learning how to animate on top of those libraries is another issue altogether.

 

We really have to keep our support focused on the GreenSock API and currently we don't have any drawing tools.  

 

If you can provide more details of the tools you are working with, perhaps it will help us point  you in the right direction. 

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