Sunday, January 15, 2012

CSS3 Melodi

Melody

Lihat Demo

CSS

#outer {
  width:200px;
  height:200px;
  margin:50px auto 0;
  position:relative;

  /* dilakukan setelah gambar sudah tersusun */
  -webkit-transform:skew(0deg, -10deg);
  -moz-transform:skew(0deg, -10deg);
  -ms-transform:skew(0deg, -10deg);
  -o-transform:skew(0deg, -10deg);
  transform:skew(0deg, -10deg);
}

.garis {
  width:4px;
  height:176px;
  background:#000;
  position:absolute;
}

.garis.satu {
  top:0px;
  left:50px;
}

.garis.dua {
  top:0px;
  right:0px;
}

.bulat {
  width:50px;
  height:40px;
  background:#000;
  -webkit-border-radius:70px / 60px;
  -moz-border-radius:70px / 60px;
  border-radius:70px / 60px;
  position:absolute;
}

.bulat.satu {
  bottom:0px;
  left:4px;
}

.bulat.dua {
  bottom:0px;
  right:0px;
}

.kotak {
  width:150px;
  height:20px;
  background:#000;
  position:absolute;
  right:0px;
}

.kotak.satu {
 top:0px;
}

.kotak.dua {
  top:30px;
}

HTML

<div id="outer">
    <div class="kotak satu"></div>
    <div class="kotak dua"></div>
    <div class="garis satu"></div>
    <div class="garis dua"></div>
    <div class="bulat satu"></div>
    <div class="bulat dua"></div>
</div> <!-- end outer -->

Labels: , ,

4 Comments:

At Tuesday, January 17, 2012 at 2:34:00 PM GMT+7, Blogger Arif Rahman said...

wah
experimen mas taufik keren :D

 
At Wednesday, January 18, 2012 at 8:44:00 AM GMT+7, Blogger Taufik Nurrohman said...

@BloGaz1ne: Trimakasih :)

 
At Friday, April 13, 2012 at 8:14:00 PM GMT+7, Blogger Andre Pandet Rank Khoerai said...

heehe..jadi ingat..ini yg kuis dari mas taufik di kopizine dulu ya mas...bikin nya cuma pake satu margin..

 
At Saturday, April 14, 2012 at 4:15:00 PM GMT+7, Blogger Taufik Nurrohman said...

@Andre Pandet Rank Khoerai Iya hehe... sayangnya saat itu Saya gagal meramaikan komunitas wkk.. :p

 

Post a Comment

<< Home