Jump to content
Search Community

Revealing a circularish path with clipping

EJ29 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 know this should be straightforward, but hey ho I can't work it out. 

 

Looking at the attached simplified pen. The red border of the full circle represents a more complex roughly circular path that I need to be revealed in a similar manner to how the green path is appearing. Because of the complexities of this path, I thought clipping would be the best approach to have it appear, but I'm struggling to get it to work. The following line of code doesn't seem to do anything:

 

TweenMax.set($("#arcPath"), { drawSVG: '0% 50%' });

 

and nor does it animate if I insert the drawSVG into a TimeLine or Tween.

 

Can someone please point me in the right direction of how it should be done?

 

(In "real life", the circle isn't filled, it's just the outline that needs the clipping applying to)

 

Thanks

See the Pen deLwKR by xyza (@xyza) on CodePen

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