Cara Membuat Menu Horizontal Animasi di Blog
Senin, 02 Desember 2013
Belajar Blog,
Blogger Pemula,
Panduan Blog,
Tips Blogger,
Trik dan Tips Blogger,
Tutorial Blogger
Edit
Untuk memodifikasi menu horisontal yang ada di blog saya. Tampilan blog yang menarik dan dinamis akan membuat pengunjung lebih betah. Di samping itu kita punya kepuasan sendiri, dari tampilan blog sederhana menjadi tampilan yang kita inginkan. Kali ini saya akan berbagi mengenai cara membuat menu horisontal animasi.
Saya tidak akan berpanjang lebar karena sudah ngantuk banget nih, langsung saja perhatikan langkah-langkahnya di bawah ini :
- Login ke blogger dengan akun anda
- Kemudian pada dasbor klik Rancangan >> Edit HTML
- Tambahkan kode CSS berikut diatas tag ]]>
.animatedtabs{
border-bottom: 1px solid gray;
overflow: hidden;
width: 100%;
font-size: 14px; /*font of menu text*/
}
.animatedtabs ul{
list-style-type: none;
margin: 0;
margin-left: 10px; /*offset of first tab relative to page left edge*/
padding: 0;
}
.animatedtabs li{
float: left;
margin: 0;
padding: 0;
}
.animatedtabs a{
float: left;
position: relative;
top: 5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxbQtqVV95NmjiXnyX4mYgpKRaeRZzktEax4zjWC_oFz9tzAZN3kvsQlisy4cV34AUivrGoNMMKFii2OIGdAi0x_qXdL4gerfpu_3aWSBBel4Jk4HPNIOMp-alinnJjXUIzurNFwQX4Eo/s320/tab-blue-left.gif) no-repeat left top;
margin: 0;
margin-right: 3px; /*Spacing between each tab*/
padding: 0 0 0 9px;
text-decoration: none;
}
.animatedtabs a span{
float: left;
position: relative;
display: block;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPZnXCeSjZ7hctY1po6YLzIYFDceGNDTYuN_fQf_rzF50rdSJtlgVXK4Zc0K5_Vqt5X8CQ0Dtb0moHatCiIFpdZNkqlHmQqz2OxGRE-yO7JDCfcAviHBUUb43UOO6VJhJjy8jhlGoLYUA/s320/tab-blue-right.gif) no-repeat right top;
padding: 5px 14px 3px 5px; /* 2) Padding within each tab. The 3rd value, or 3px, should equal (1) MINUS (3) */
font-weight: bold;
color: black;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
.animatedtabs a span {float:none;}
/* End IE5-Mac hack */
.animatedtabs .selected a{
background-position: 0 -125px;
top: 0;
}
.animatedtabs .selected a span{
background-position: 100% -125px;
color: black;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}
.animatedtabs a:hover{
background-position: 0% -125px;
top: 0;
}
.animatedtabs a:hover span{
background-position: 100% -125px;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}
border-bottom: 1px solid gray;
overflow: hidden;
width: 100%;
font-size: 14px; /*font of menu text*/
}
.animatedtabs ul{
list-style-type: none;
margin: 0;
margin-left: 10px; /*offset of first tab relative to page left edge*/
padding: 0;
}
.animatedtabs li{
float: left;
margin: 0;
padding: 0;
}
.animatedtabs a{
float: left;
position: relative;
top: 5px; /* 1) Number of pixels to protrude up for selected tab. Should equal (3) MINUS (2) below */
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxbQtqVV95NmjiXnyX4mYgpKRaeRZzktEax4zjWC_oFz9tzAZN3kvsQlisy4cV34AUivrGoNMMKFii2OIGdAi0x_qXdL4gerfpu_3aWSBBel4Jk4HPNIOMp-alinnJjXUIzurNFwQX4Eo/s320/tab-blue-left.gif) no-repeat left top;
margin: 0;
margin-right: 3px; /*Spacing between each tab*/
padding: 0 0 0 9px;
text-decoration: none;
}
.animatedtabs a span{
float: left;
position: relative;
display: block;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPZnXCeSjZ7hctY1po6YLzIYFDceGNDTYuN_fQf_rzF50rdSJtlgVXK4Zc0K5_Vqt5X8CQ0Dtb0moHatCiIFpdZNkqlHmQqz2OxGRE-yO7JDCfcAviHBUUb43UOO6VJhJjy8jhlGoLYUA/s320/tab-blue-right.gif) no-repeat right top;
padding: 5px 14px 3px 5px; /* 2) Padding within each tab. The 3rd value, or 3px, should equal (1) MINUS (3) */
font-weight: bold;
color: black;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
.animatedtabs a span {float:none;}
/* End IE5-Mac hack */
.animatedtabs .selected a{
background-position: 0 -125px;
top: 0;
}
.animatedtabs .selected a span{
background-position: 100% -125px;
color: black;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}
.animatedtabs a:hover{
background-position: 0% -125px;
top: 0;
}
.animatedtabs a:hover span{
background-position: 100% -125px;
padding-bottom: 8px; /* 3) Bottom padding of selected tab. Should equal (1) PLUS (2) above */
top: 0;
}
<div class='animatedtabs'>
<ul>
<li><a href='http://ediesblack.blogspot.com' title='Home'><span>Home</span></a></li>
<li><a href='http://ediesblack.blogspot.com/search/label/tutorial blog' title='Panduan Blog'><span>Panduan Blog</span></a></li>
<li><a href='http://ediesblack.blogspot.com/search/label/Film Jaman Dulu' title='Doenload Film Jaman Dulu'><span>Film Jaman Dulu</span></a></li>
<li><a href='http://ediesblack.blogspot.com/search/label/Klinik Hukum' title='Klinik Hukum'><span>Klinik Hukum</span></a></li>
<li><a href='http://ediesblack.blogspot.com/search/label/Belajar Blog' title='Belajar Blog'><span>Belajar Blog</span></a></li>
<li><a href='http://ediesblack.blogspot.com/search/label/CorelDraw' title='CorelDraw'><span>CorelDraw</span></a></li>
</ul>
</div>
0 Response to "Cara Membuat Menu Horizontal Animasi di Blog"
Posting Komentar