Membuat accordion menu tentu membuat tampilan web anda menjadi semakin telihat mengesankan, namun akan lebih mengesankan jika tampilan dari accorion itu sendiri telihat unik dan berbeda dengan menu lainnya seperti contoh berikut:
DEMO | DOWNLOAD
CSS :
HTML :
DEMO | DOWNLOAD
DEMO | DOWNLOAD
CSS :
- <style type="text/css">
- .cp-accordion {width:250px; height:35px; margin:0 auto 450px auto; position:relative; z-index:100;
- -webkit-perspective:400px;
- -moz-perspective:400px;
- perspective:400px;
- -webkit-transform-origin: 50% 100%;
- -moz-transform-origin: 50% 100%;
- transform-origin: 50% 100%;
- }
- /* default settings */
- .cp-accordion div {position:absolute; padding:10px;
- -webkit-transform-style:preserve-3d;
- -moz-transform-style:preserve-3d;
- transform-style:preserve-3d;
- top:100%; leftleft:0; width:230px;
- -webkit-transform-origin: 0 0;
- -moz-transform-origin: 0 0;
- transform-origin: 0 0;
- }
- .cp-accordion .odd {background:#ddd;
- -moz-transform:rotateX(-180deg);
- -webkit-transform:rotateX(-180deg);
- -webkit-transition: 1s;
- -moz-transition: 1s;
- -o-transition: 1s;
- transition: 1s;
- }
- .cp-accordion .even {background:#eee;
- -moz-transform:rotateX(180deg);
- -webkit-transform:rotateX(180deg);
- -webkit-transition: 1s;
- -moz-transition: 1s;
- -o-transition: 1s;
- transition: 1s;
- }
- .cp-accordion .first {background:#ddd;
- -moz-transform:rotateX(-100deg);
- -webkit-transform:rotateX(-100deg);
- -webkit-transition: 0.6s;
- -moz-transition: 0.6s;
- -o-transition: 0.6s;
- transition: 0.6s;
- }
- .cp-accordion .last {box-shadow:0 15px 10px -10px rgba(0,0,0,0.3); border-radius: 0 0 10px 10px;}
- .cp-accordion:hover .sub {
- -moz-transform:rotateX(0deg);
- -webkit-transform:rotateX(0deg);
- }
- .cp-accordion .sub img {display:block; float:leftleft; padding:0 10px 10px 0;}
- .cp-accordion .sub p {font: normal 12px/15px arial, sans-serif; color:#000; padding:0; margin:0;}
- .cp-accordion .sub p span {display:block; font: bold 14px/18px arial, sans-serif; color:#ea0;}
- .cp-accordion .sub p a {font: normal 12px/15px arial, sans-serif; color:#09c;}
- .cp-accordion .sub p a:hover {text-decoration:none;}
- .cp-accordion a.main {display:block; font: bold 15px/35px arial, sans-serif; text-align:center; text-decoration:none; color:#fff; background:#069; border-radius:10px 10px 0 0; position:relative; z-index:100;}
- </style>
- <div class="cp-accordion"><a class="main" href="http://indrawan21.blogspot.com">Calon Programer</a>
- <div class="sub first"><img src="images/antivirus.png" alt=""><p><span>Anti Virus</span>Download antivirus terbaru <a href="http://indrawan21.blogspot.com">full</a> secara GRATISSS.</p>
- <div class="sub even"><img src="images/penguin.png" alt=""><p><span>Ubuntu</span>Tutorial Ubuntu <a href="http://indrawan21.blogspot.com">dan tips</a> trik ubuntu.</p>
- <div class="sub odd"><img src="images/my_mac.png" alt=""><p><span>My Mac</span>Mac OS <a href="http://indrawan21.blogspot.com">calon prorgamer</a></p>
- <div class="sub even"><img src="images/xchat.png" alt=""><p><span>Chat</span>Chat sosial networking <a href="http://indrawan21.blogspot.com">ada disini</a></p>
- <div class="sub odd last"><img src="images/neotux.png" alt=""><p><span>New Tux</span>Tampilan Pinguin Unix Baru, <a href="http://indrawan21.blogspot.com">Calon Programer</a></p>
- </div></div></div></div></div>
- </div> Silahkan kalian modifikasi sesuai dengan kebutuhan website kalian
- Semoga bermanfaat
iiihhh weeewwww....
BalasHapuskereeenn.. kereeennn..
6 jempol dah buat kamu, yg 2 na ngutang dulu.. hehhee.. (y) (y)
makasih :D
Hapus