CSS3 Loading Bar
HTML
<div class='loading'>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
CSS
.loading {text-align:center;}
.loading span {
display:inline-block;
margin:0px 1px;
width:20px;
height:20px;
background-color:cyan;
}
.loading span:nth-child(1) {
-webkit-animation:loading 0.5s infinite alternate 0s;
-moz-animation:loading 0.5s infinite alternate 0s;
-ms-animation:loading 0.5s infinite alternate 0s;
-o-animation:loading 0.5s infinite alternate 0s;
animation:loading 0.5s infinite alternate 0s;
}
.loading span:nth-child(2) {
-webkit-animation:loading 0.5s infinite alternate 0.2s;
-moz-animation:loading 0.5s infinite alternate 0.2s;
-ms-animation:loading 0.5s infinite alternate 0.2s;
-o-animation:loading 0.5s infinite alternate 0.2s;
animation:loading 0.5s infinite alternate 0.2s;
}
.loading span:nth-child(3) {
-webkit-animation:loading 0.5s infinite alternate 0.4s;
-moz-animation:loading 0.5s infinite alternate 0.4s;
-ms-animation:loading 0.5s infinite alternate 0.4s;
-o-animation:loading 0.5s infinite alternate 0.4s;
animation:loading 0.5s infinite alternate 0.4s;
}
.loading span:nth-child(4) {
-webkit-animation:loading 0.5s infinite alternate 0.6s;
-moz-animation:loading 0.5s infinite alternate 0.6s;
-ms-animation:loading 0.5s infinite alternate 0.6s;
-o-animation:loading 0.5s infinite alternate 0.6s;
animation:loading 0.5s infinite alternate 0.6s;
}
@-webkit-keyframes loading {
0% {opacity:0.1;}
100% {opacity:1; }
}
@-moz-keyframes loading {
0% {opacity:0.1;}
100% {opacity:1; }
}
@-ms-keyframes loading {
0% {opacity:0.1;}
100% {opacity:1; }
}
@-o-keyframes loading {
0% {opacity:0.1;}
100% {opacity:1; }
}
@keyframes loading {
0% {opacity:0.1;}
100% {opacity:1; }
}
Demo
Labels: CSS, Eksperimen, Potongan
12 Comments:
aku ngarep tutor jquery nya kok blum muncul2 :D
By Sinto, at Sunday, April 1, 2012 at 6:18:00 PM GMT+7
@system of blog Sedang dibuat :)
By Taufik Nurrohman, at Sunday, April 1, 2012 at 11:20:00 PM GMT+7
OK bang di TUnggu
By Sinto, at Monday, April 2, 2012 at 10:27:00 AM GMT+7
@system of blog Cek posting ini: http://hompimpaalaihumgambreng.blogspot.com/2012/04/selektor-jquery.html
By Taufik Nurrohman, at Monday, April 2, 2012 at 10:57:00 AM GMT+7
mantap sob..!,
gmn carax pasang google translet kayak punya sobat..., aq dr td coba tp gk bisa2.., terima kasih... :)
By Rohis Facebook, at Wednesday, April 4, 2012 at 5:09:00 PM GMT+7
@Rohis Facebook Saya cuma mengarahkan URL ke Google Translate:
<a href='#' onclick='window.open("http://translate.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=id%7Cen&hl=en"); return false;' rel='nofollow' target='_blank' title='English'>Translate</a>
[note]Contoh widget Google Translate yang ringan: http://hompimpaalaihumgambreng.blogspot.com/2011/10/pasang-widget-google-translate-yang.html[/note]
By Taufik Nurrohman, at Wednesday, April 4, 2012 at 6:56:00 PM GMT+7
cara pasang ke blognya gmana bro??
maklum newbie
By Nothing, at Thursday, April 5, 2012 at 12:54:00 PM GMT+7
@Lùçký T-télLøw Hehe... ini bukan untuk dipasang. Cuma sebagai karya seni saja. Kalau mau memasang lebih baik gunakan gambar animasi yang sesungguhnya. Lagipula inspirasi eksperimen seperti ini banyak sekali.
By Taufik Nurrohman, at Thursday, April 5, 2012 at 3:27:00 PM GMT+7
@Taufik Nurrohmanklo penjelasanx se-simpe i2 pasti dimengerti olh sobat system of blog cz emank dia pny dasar2..,tp klo sy gak ngerti hehe.. gelap bro :), bisa dijelaskan lebih-lebih simple lg.., contoh penulisanx gmn..?? terima kasih :)
By Rohis Facebook, at Thursday, April 5, 2012 at 4:01:00 PM GMT+7
@Rohis Facebook Hehe... masukkan saja ke dalam widget! B)
By Taufik Nurrohman, at Thursday, April 5, 2012 at 5:00:00 PM GMT+7
@Taufik Nurrohmanlalu gmn klo mau dimasukkan dlm menu, sy mau naruh pas disamping menu 'Link Exchange', terima kasih.., tlong dijelaskan scr detail ya hehhe..., terima kasih :)
By Rohis Facebook, at Friday, April 6, 2012 at 7:35:00 PM GMT+7
@Rohis Facebook Navigasi blog biasanya terdiri dari elemen <li>, tinggal ikuti nadanya saja:
<li><a href='#' onclick='window.open("http://translate.google.com/translate?u="+encodeURIComponent(location.href)+"&langpair=id%7Cen&hl=en"); return false;' rel='nofollow' target='_blank' title='English'>Translate</a></li>
By Taufik Nurrohman, at Friday, April 6, 2012 at 8:32:00 PM GMT+7
Post a Comment
<< Home