0

I have a function that I want to use to animate different items, but I want to have the attribute animated change based on a passed css parameter, but can't get it to work.

function loopAnimation(shape, cssProperty) {
        $(shape)
        .animate({cssProperty: "0%"}, 1000)
        .animate({cssProperty: "75%"}, 1000),
        loopAnimation(shape, cssProperty)
    };
Rob_lc
  • 17
  • 5

0 Answers0