Jump to content
Search Community

Accessing Arc's dashArray where the are is created using svg.js library

JamesGrubb test
Moderator Tag

Recommended Posts

Hey James. This isn't really about GSAP. The issue is that you're trying to use the attribute plugin of GSAP (which gets the attribute of DOM elements by using the .getAttribute() method) but your target isn't a DOM element - it's a JS object - a Path object of Paper.js. It doesn't have a .getAttribute() method. 

 

I don't know Paper.js enough to tell you how you should set things up. I would start from Blake's demo in the linked thread and then start adapting it to your needs, fixing errors that arrive as needed. If you have a question specific to GSAP please let us know!

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