R
olling Door Menu atau Menu Pintu Garasi adalah sebuah menu navigasi dengan gaya seperti pintu rolling door (pintu garasi) di mana gambar "pintu" akan menggeser keatas (slide up) saat mouse diatasnya (hover) dan membuka sesuatu di baliknya. Desain menu navigasi ini akan dibuat dengan CSS3, dan dengan jQuery. Kemudian kita akan menggabungkan keduanya untuk menghasilkan menu navigasi yang cantik dan unik, Menu Navigasi Rolling Door.
Ok kita langsung saja lihat live DEMOnya pada menu blog ini atau lihat pada gambar dibawah ini:




Kode CSS DAN JAVASCRIPT
<ul id="garagedoor"> <li id="shutter1"><a href="#1">Link 1</a></li> <li id="shutter2"><a href="#2">Link 2</a></li> <li id="shutter3"><a href="#3">Link 3</a></li> <li id="shutter4"><a href="#4">Link 4</a></li> </ul> <script src='http://bodoh.googlecode.com/files/modernizr-1.5.min.js'></script> <script src='http://bodoh.googlecode.com/files/jquery.backgroundPosition.js'></script> <style> * { margin: 0; padding: 0; } a { outline: 0; } h1 { text-align: center; margin: 0 auto; font: bold 32px Helvetica, Arial, Sans-Serif; margin: 70px auto 10px; letter-spacing: -1px; } h2 { text-align: center; padding: 5px; margin: 10px; background: #fff2b6; color: #398138; } #garagedoor { margin: 10px auto; list-style: none; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvKUIwHGmXtcpB2ExfOukIsrHPqhYDCx5oIZcy5H0G4C8FfajPQY-PM2MOqraxamEVUuBOozzZB5qNzd4u8thCu32ihVor1sxRG9aEH71HLDOruyRWIJdAiuSzmbJ6oyEiYSCzJHsUDS9z/s1600/menu-bg.jpg) no-repeat; width: 800px; overflow: auto; } #garagedoor li { width: 200px; height: 100px; display: block; float: left; } /* Modernizer Enabled */ .csstransitions #garagedoor li { -webkit-transition: background-position 0.6s ease; -moz-transition: background-position 0.6s ease; -o-transition-property: background-position 0.6s ease; } .csstransitions #garagedoor li:hover { background-position: 0 -100px !important; } #garagedoor li#shutter1 { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghvxUjiad0csmLvaMymGk_BOlwn1JXqYcTTxb7VmVfmikKFxyuZgK2MZM4kdZhv_q3mZd8LesuolMdi7FWeBvXu3or70q-oMSyLQEUCcsV_MsKl0hpRdNdoDGdiSs9D4KoMBw45F9XUzNB/s1600/shutter-africanplains.jpg) 0 0 no-repeat; } #garagedoor li#shutter2 { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsGaC80UzmgB4wkZacc2qU7eWKJHy50a0PaVn94TnRKzLr4af50y31mKzjjcD5xMnjMC-DqCTfaPHGMgK_W-mzifqn2Msq4D9X0VydbI3O7q8kz3FEEnbETyHdtRYgNx0ZnYnr1gqBSlGX/s1600/shutter-reptiles.jpg) 0 0 no-repeat; } #garagedoor li#shutter3 { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6aa3KMpr8NCeIWUp9JGf_Wbm84GeskP5Hu5AcpxTMod-8Lurh_F_YdDVSeMIlzJG_UxHgxcx0FNGrBQACEg6Xy4MkP503HaXmQVvqS8CAnA1H3K0cFnHsaLapNWigAbbf5n-7PnwQ2QGm/s1600/shutter-aviary.jpg) 0 0 no-repeat; } #garagedoor li#shutter4 { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQHS9Mfgwqn2CVlN7OTAJ8bQWsj7gI51LdkH5gLVujP2a0UHhHBtNos57V57hSizt9wXnvaNcsE1Ilq6NWKXTP7JofNkpKrnOD8ODCZHVlHHznyxhoDFPcstg7p3b76xQxjxZGMZbywvZr/s1600/shutter-arcticzone.jpg) 0 0 no-repeat; } #garagedoor a { width: 200px; height: 100px; display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia9K-UJunltQW8Or_YAe92hYBO-cg_Lgdt1219UzhWLwzuPGlCSlSDRxz0HKu_yeZOINJhi25o1dv5dG0UWWnq6qKAkdXFYEm2QMjRILGDzymTY_sCNNakXf4fkEN0iIrDnwWhGTsNBS8f/s1600/window.png) no-repeat bottom center; text-indent: -9999px; } </style>Alamat URL gambar yang berwarna biru silahkan sobat ganti dengan url gambar yang telah sobat buatDemikian saja semoga bermanfaat..........
vERY FANTASTIC, ALTHOUGHT I know this is belong to css-trick.com...
BalasHapusHa..ha..that's right, all the web's master know that, anyway thank for coming here...
Hapus