Sunday, April 1, 2012

CSS3 Loading Bar

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

Lihat Demo

Labels: , ,

12 Comments:

At Sunday, April 1, 2012 at 6:18:00 PM GMT+7, Blogger Sinto said...

aku ngarep tutor jquery nya kok blum muncul2 :D

 
At Sunday, April 1, 2012 at 11:20:00 PM GMT+7, Blogger Taufik Nurrohman said...

@system of blog Sedang dibuat :)

 
At Monday, April 2, 2012 at 10:27:00 AM GMT+7, Blogger Sinto said...

OK bang di TUnggu

 
At Monday, April 2, 2012 at 10:57:00 AM GMT+7, Blogger Taufik Nurrohman said...

@system of blog Cek posting ini: http://hompimpaalaihumgambreng.blogspot.com/2012/04/selektor-jquery.html

 
At Wednesday, April 4, 2012 at 5:09:00 PM GMT+7, Blogger Rohis Facebook said...

mantap sob..!,

gmn carax pasang google translet kayak punya sobat..., aq dr td coba tp gk bisa2.., terima kasih... :)

 
At Wednesday, April 4, 2012 at 6:56:00 PM GMT+7, Blogger Taufik Nurrohman said...

@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]

 
At Thursday, April 5, 2012 at 12:54:00 PM GMT+7, Blogger Nothing said...

cara pasang ke blognya gmana bro??
maklum newbie

 
At Thursday, April 5, 2012 at 3:27:00 PM GMT+7, Blogger Taufik Nurrohman said...

@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.

 
At Thursday, April 5, 2012 at 4:01:00 PM GMT+7, Blogger Rohis Facebook said...

@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 :)

 
At Thursday, April 5, 2012 at 5:00:00 PM GMT+7, Blogger Taufik Nurrohman said...

@Rohis Facebook Hehe... masukkan saja ke dalam widget! B)

 
At Friday, April 6, 2012 at 7:35:00 PM GMT+7, Blogger Rohis Facebook said...

@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 :)

 
At Friday, April 6, 2012 at 8:32:00 PM GMT+7, Blogger Taufik Nurrohman said...

@Rohis Facebook Navigasi blog biasanya terdiri dari elemen <li>, tinggal ikuti nadanya saja:

<li><a href='#' onclick='window.open(&quot;http://translate.google.com/translate?u=&quot;+encodeURIComponent(location.href)+&quot;&amp;langpair=id%7Cen&amp;hl=en&quot;); return false;' rel='nofollow' target='_blank' title='English'>Translate</a></li>

 

Post a Comment

<< Home