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

jQuery animate (slider sliding effect code)_jquery

WBOY
Release: 2016-05-16 18:37:35
Original
1393 people have browsed it
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;

});
});


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template