Jump to content
Search Community

narb

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by narb

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

×
×
  • Create New...