Jump to content
Search Community

RaphaelPlugin support for gRaphaël

marcus 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

Hey all,

 

I am trying to animate a piechart created with gRaphael, but it returns the error c.charAt is not a function. Here's my code:

pie.forEach( function(element) {
 TweenLite.to(element, 2, {raphael:{stroke: "#000", "stroke-width": 80, "stroke-opacity": 0.5, fill: "#223fa3"}, ease:Power0.easeOut});
});

 

It's pretty straightforward, but I admit my experience with RaphaelJS in general is very limited. Any ideas?

 

marcus

Link to comment
Share on other sites

I tried your code and it worked fine for me. No errors. Are you using the latest version of the plugin? Maybe download it again just to be sure. Otherwise, if you still need help, please post your whole HTML file that contains the error (strip it down to the minimal code though)

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