Mau Tau Ring Menu Itu Kayak Gimana ?? Banya Selengkapnya Woke ^_^
Contoh Ring Menu :
Udah Liatkan Contoh Ring Menu'nya ?? .. Kalo Udah Yok Liat Scriptnya :D
CSSnya :
Dan Yang Ini Kode HTMLnya Atau Bisa Dibilang Script Pemanggil CSSnya :
html, body {
height: 100%;
}
ul , li {
margin: 0;
padding: 0;
}
.ringMenu {
width: 100px;
margin: 150px auto;
}
.ringMenu:hover {}
.ringMenu ul {
list-style: none;
position: relative;
width: 100px;
color: white;
}
.ringMenu ul a {
color: white;
}
.ringMenu ul li {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.ringMenu ul li a {
display: block;
width: 100px;
height: 100px;
background: rgba(50,50,50,0.7);
text-align: center;
line-height: 100px;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
border-radius: 50px;
}
.ringMenu ul li a:hover {
background: rgba(230,150,20,0.7);
}
.ringMenu ul li:not(.main) {
-webkit-transform: rotate(-180deg) scale(0);
-moz-transform: rotate(-180deg) scale(0);
-o-transform: rotate(-180deg) scale(0);
transform: rotate(-180deg) scale(0);
opacity: 0;
}
.ringMenu:hover ul li {
-webkit-transform: rotate(0) scale(1);
-moz-transform: rotate(0) scale(1);
-o-transform: rotate(0) scale(1);
transform: rotate(0) scale(1);
opacity: 1;
}
.ringMenu ul li.top {
-webkit-transform-origin: 50% 152px;
-moz-transform-origin: 50% 152px;
-o-transform-origin: 50% 152px;
transform-origin: 50% 152px;
position: absolute;
top: -102px;
left: 0;
}
.ringMenu ul li.bottom {
-webkit-transform-origin: 50% -52px;
-moz-transform-origin: 50% -52px;
-o-transform-origin: 50% -52px;
transform-origin: 50% -52px;
position: absolute;
bottom: -102px;
left: 0;
}
.ringMenu ul li.right {
-webkit-transform-origin: -52px 50%;
-moz-transform-origin: -52px 50%;
-o-transform-origin: -52px 50%;
transform-origin: -52px 50%;
position: absolute;
top: 0px;
right: -102px;
}
.ringMenu ul li.left {
-webkit-transform-origin: 152px 50%;
-moz-transform-origin: 152px 50%;
-o-transform-origin: 152px 50%;
transform-origin: 152px 50%;
position: absolute;
top: 0;
left: -102px;
}
<div class="ringMenu">
<ul>
<li class="main"><a href="http://www.blogger.com/blogger.g?blogID=2996732288214607132#main">main</a></li>
<li class="top"><a href="http://www.blogger.com/blogger.g?blogID=2996732288214607132#top">top</a></li>
<li class="right"><a href="http://www.blogger.com/blogger.g?blogID=2996732288214607132#right">right</a></li>
<li class="bottom"><a href="http://www.blogger.com/blogger.g?blogID=2996732288214607132#bottom">bottom</a></li>
<li class="left"><a href="http://www.blogger.com/blogger.g?blogID=2996732288214607132#left">left</a></li>
</ul>
</div>
Simple Bukan ?? ^_^ ,, Ahahahaha Gampang Sekali Ya :D ... Buat Sobat Ada Yang Tidak Di Mengerti Gk ??? Kalo Ada Silahkan Bertanya :D ,,, Gunakanlah Kotak Komentar Untuk Bertanya Atau Mengomentari Artikel Ini :D ,, Karna Memang Itulah Gunanya Kotak Komentar :D.
No comments:
Post a Comment