weepy / jquery.path

Animatation for arcs and bezier curves with jQuery
http://weepy.github.com/jquery.path/
407 stars 79 forks source link

Getting error $.path is undefined #31

Open dilipvora07 opened 7 years ago

dilipvora07 commented 7 years ago
function animate()
{
  var path = {
            start: {
              x: 50,
              y: 50,
              angle: 315.012,
              length: 0.707
            },
            end: {
              x: 540,
              y: 540,
              angle: 315.012,
              length: 0.707
            }
          };

  $('.animatingDiv').animate(
      {
        path : new $.path.bezier(path)
      },
      2000,
      animate
    );
}

Trying above code but getting - TypeError: $.path is undefined

Thanks