Trying to animate a div
when the user clicks on a particular button on the UI. It's just meant to be a simple animation. Below is my code. Everything works fine except for this line
transform:"rotate(260deg)"
I am using Google Chrome and I know that it should be -webkit
but this throws an error in the code.
$("#anim2").on("click", function(){
console.log("anim2");
b1.animate({
left:"250px",
height:"20px",
width:"20px",
opacity:"0.5",
transform:"rotate(260deg)"
});
});
Any ideas how I can adjust it so it will work?