Home >Web Front-end >JS Tutorial >jQuery animate (slider sliding effect code)_jquery

jQuery animate (slider sliding effect code)_jquery

WBOY
WBOYOriginal
2016-05-16 18:37:351394browse
jQuery animate (slider sliding effect code)_jquery
HTML
复制代码 代码如下:


CSS
复制代码 代码如下:





JavaScript
复制代码 代码如下:

$(document).ready(function(){
$(".run").click(function(){

$("#box").animate({opacity: "0.1", left: " =400"}, 1200)
.animate({opacity: "0.4", top: " =160", height: "20", width: "20"}, "slow")
.animate({opacity: "1", left: "0", height: "100", width: "100"}, "slow")
.animate({top: "0"}, "fast")
.slideUp()
.slideDown("slow")
return false;

});
});


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn