Jump to content
Search Community

DrawSVG - visibility and drawing issue

defc0n1 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

I am trying to animate an external svg included via <object>. Some parts work flawlessly others without now apparent reason do not work as expected or not work as all.

 

My code looks something like this:

 

var tl = new TimelineMax({});

 

tl.set(el1, {visibility:"visible"})

. from (el1, 2, {drawSVG:0}) -> for some elements this does not draw/reveal partially but just reveals the path

.set(el1, {visibility:"hidden"}) -> this does not hide the drawn element in any case - how can I hide/undraw and element after drawing it - is drawSVG(0 100 0 ) an option?

 

Thank you very much for your assistance.

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