Membuat Animasi Berjalan dengan JQUERY


$(document).ready(function(){
$(“.mulai”).click(function() {
$(“#kotak”).animate({ left: “400” }, “slow”)
.animate({ top: “-160”, height: “200”, width: “200”}, “slow”)
.animate({ left: “0”, height: “100”, width: “100”}, “slow”)
.animate({ top: “0”}, “slow”)
.slideUp()
.slideDown(“slow”);
});
});

#kotak {
position: relative;
width: 100px;
height: 100px;
background: red;
}

One thought on “Membuat Animasi Berjalan dengan JQUERY

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s