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
@system of blog Sedang dibuat :)
OK bang di TUnggu
@system of blog Cek posting ini: http://hompimpaalaihumgambreng.blogspot.com/2012/04/selektor-jquery.html
mantap sob..!,
gmn carax pasang google translet kayak punya sobat..., aq dr td coba tp gk bisa2.., terima kasih... :)
@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]
cara pasang ke blognya gmana bro??
maklum newbie
@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.
@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 :)
@Rohis Facebook Hehe... masukkan saja ke dalam widget! B)
@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 :)
@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>
Post a Comment
<< Home