开发者

jQuery or Javascript animation

I'm just beginning learning javascript and jQuery and need some help. I 开发者_运维百科am trying to get a picture to start at the bottom of the page (of the viewers window) and animate or slide (or any other effect - I am not too knowledgable at this point) diagonally across the page to the top...

The example is a spider diagonally going to the top of the page. Any idea of what type of javascript/jQuery function I can use. Any help would be super appreciated. Thanks!


Look at the animate function.

Could be as simple as:

$('img').animate({'left': '+=500px', 'top': '-=500px'});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜