Hey How would I load this code
in a simple web form in visual studio.
For example can I insert this into the
var rotation = function (){
$("#image").rotate({
angle:0,
animateTo:360,
callback:enter code here rotation,
easing: function (x,t,b,c,d){ // t: current time, b: begInnIng value,
c: change In value, d: duration
return c*(t/d)+b;
}
});
}
rotation();
Put that code in a JavaScript file (.js), then in your web form file, add a tag that references the .js file:
A second possibility is to put that code inside the script tag in your web form file:
Of course, you’ll need to make sure to first reference jQuery and whatever other javascript libraries you need BEFORE inclusing your js file, or BEFORE the inline script tag.
Hope this helps
EDIT: Here’s a working verison on my side: