narb
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by narb
-
-
2 minutes ago, GreenSock said:
It sure sounds like #shep_ferry isn't an SVG element - is that right? It needs to be SVG.
This is exactly my problem. Thank you very much.
- 2
-
I will work to get a codepen together. Thanks for noticing the typo, I do have it correct in the code I'm trying to run.
-
I have an SVG I'm trying to align to a path using pathDataToBezier().
When I do not include an align parameter the animation plays normally with code below.
ferry_motionPath = MorphSVGPlugin.pathDataToBezier("#shep_path"); $("#test_ferry").click(function(){ tween=TweenLite.to("#shep_ferry",60,{bezier:{values:shep_motionPath, type:"cubic"}, ease: Power1.easeIn}); });
when I change this to align to the object as below:
ferry_motionPath = MorphSVGPlugin.pathDataToBezier("#shep_path", {align:"#shep_ferry"});
I'm getting the error:
jQuery.Deferred exception: k[0].getBBox is not a function K.pathDataToBezier@***********/js/gsap/plugins/MorphSVGPlugin.min.js:13:12096
TypeError: k[0].getBBox is not a function
I am loading TweenMax and the MorphSVGPlugin, is there another dependancy I am missing?
iOS 10 & ScrollToPlugin
in GSAP
Posted
Thanks for this solution. Saved me quite a bit of time troubleshooting.