Skip to content

meteorasd555/animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

##if you want to add some animation to a div witch id is "block", see the code

[pre]


// initialize a variable
var ani = new TW();

// left: 0 - 1200, top: 200 - 500 ani.fromTo({ x: 0, y: 200 }, { x: 1200, y: 500 }, 1111).run(function(obj) { this.style.left = obj.x + "px"; this.style.top = obj.y + "px"; }, document.getElementById("block"));

About

animate a number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published