Skip to content

Instantly share code, notes, and snippets.

@hacke2

hacke2/animate.js

Created Aug 25, 2014
Embed
What would you like to do?
从左上角弹出
$box.animate({
width: this.mWidth "px",
height: this.mHeight "px",
"left": browserWidth / 2 - this.mWidth / 2 "px",
"top": browserHeight / 2 - this.mHeight / 2 "px"
}, 300);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment