Pull-out menu for the mobile version of the site for CSS3 - UcozBaze All Scripts And Templates
  
Page 1 of 11
UcozBaze All Scripts And Templates » Scripts and Coding » Site Menu » Pull-out menu for the mobile version of the site for CSS3 (Pull-out menu for the mobile version of the site for CSS3)
Pull-out menu for the mobile version of the site for CSS3
interoutDate: Sunday, 2012-08-26, 11:27 PM | Message # 1
Group: Administrators
Messages: 1021
33


Code
<style>
.menuHolder {position:relative; width:150px; height:50px; margin:0 auto 200px auto;}
.menuHolder ul {padding:0; margin:0; list-style:none; position:absolute;}
.menuHolder ul li {display:block; width:150px;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.menuHolder ul li a {
display:block;
text-align:center;
width:150px;
height:50px;
font:bold 11px/50px verdana, arial, sans-serif;
color:#fff;
text-decoration:none;
-o-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.menuHolder ul ul li a {line-height:65px;}
.menuHolder ul li.t2 a {line-height:65px; color:#036;}
.menuHolder ul ul {position:relative; z-index:-1;}
.menuHolder ul li {position:relative; z-index:10;}
.menuHolder ul li.t2:before,
.menuHolder ul ul li:before {
content:"";
display:block;
width:130px;
height:20px;
position:absolute;
left:10px;
bottom:5px;
z-index:-1;
opacity:0;
-o-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-ms-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.menuHolder ul li.s1 {margin-top:-50px; z-index:20;}
.menuHolder ul li.s2 {margin-top:-50px; z-index:19;}
.menuHolder ul li.s3 {margin-top:-50px; z-index:18;}
.menuHolder ul li.s4 {margin-top:-50px; z-index:17;}
.menuHolder ul li.s5 {margin-top:-50px; z-index:16;}
.menuHolder ul li.s6 {margin-top:-50px; z-index:15;}
.menuHolder ul li.t1 a {background:#777;}
.menuHolder ul li.s1 a {background:#888;}
.menuHolder ul li.s2 a {background:#999;}
.menuHolder ul li.s3 a {background:#aaa;}
.menuHolder ul li.s4 a {background:#bbb;}
.menuHolder ul li.s5 a {background:#ccc;}
.menuHolder ul li.s6 a {background:#ddd;}
.menuHolder ul li.t2 a {background:#eee;}
.menuHolder ul li.t2 {margin-top:-50px; position:relative; z-index:9;}
.menuHolder ul li:hover ul li {margin-top:-15px;}
.menuHolder ul li:hover ul li:before {opacity:1;}
.menuHolder ul li.t1:hover > a {background:#036; color:#fff;}
.menuHolder ul li.s1:hover > a {background:#258; color:#fff;}
.menuHolder ul li.s2:hover > a {background:#369; color:#fff;}
.menuHolder ul li.s3:hover > a {background:#47a; color:#fff;}
.menuHolder ul li.s4:hover > a {background:#58b; color:#fff;}
.menuHolder ul li.s5:hover > a {background:#69c; color:#fff;}
.menuHolder ul li.s6:hover > a {background:#7ad; color:#fff;}
.menuHolder ul li.t2:hover > a {background:#8be; color:#fff;}
</style>
<style media="only screen and (max-device-width:768px)" type="text/css">
.menuHolder ul li:hover + li.t2 {margin-top:-15px;}
.menuHolder ul li:hover + li.t2:before {opacity:1;}
</style>
<div class="menuHolder">
<ul>
<li class="t1"><a href="#">Menu</a>
<ul>
<li class="s1"><a href="#">Menu</a></li>
<li class="s2"><a href="#">Menu</a></li>
<li class="s3"><a href="#">Menu</a></li>
<li class="s4"><a href="#">Menu</a></li>
<li class="s5"><a href="#">Menu</a></li>
<li class="s6"><a href="#">Menu</a></li>
</ul>
</li>
<li class="t2"><a href="#">Close X</a></li>
</ul>
</div>


 
Message


Code
<style>
.menuHolder {position:relative; width:150px; height:50px; margin:0 auto 200px auto;}
.menuHolder ul {padding:0; margin:0; list-style:none; position:absolute;}
.menuHolder ul li {display:block; width:150px;
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.menuHolder ul li a {
display:block;
text-align:center;
width:150px;
height:50px;
font:bold 11px/50px verdana, arial, sans-serif;
color:#fff;
text-decoration:none;
-o-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
}
.menuHolder ul ul li a {line-height:65px;}
.menuHolder ul li.t2 a {line-height:65px; color:#036;}
.menuHolder ul ul {position:relative; z-index:-1;}
.menuHolder ul li {position:relative; z-index:10;}
.menuHolder ul li.t2:before,
.menuHolder ul ul li:before {
content:"";
display:block;
width:130px;
height:20px;
position:absolute;
left:10px;
bottom:5px;
z-index:-1;
opacity:0;
-o-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-ms-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-moz-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
-webkit-transition: 0.5s;
-moz-transition: 0.5s;
-ms-transition: 0.5s;
-o-transition: 0.5s;
transition: 0.5s;
}
.menuHolder ul li.s1 {margin-top:-50px; z-index:20;}
.menuHolder ul li.s2 {margin-top:-50px; z-index:19;}
.menuHolder ul li.s3 {margin-top:-50px; z-index:18;}
.menuHolder ul li.s4 {margin-top:-50px; z-index:17;}
.menuHolder ul li.s5 {margin-top:-50px; z-index:16;}
.menuHolder ul li.s6 {margin-top:-50px; z-index:15;}
.menuHolder ul li.t1 a {background:#777;}
.menuHolder ul li.s1 a {background:#888;}
.menuHolder ul li.s2 a {background:#999;}
.menuHolder ul li.s3 a {background:#aaa;}
.menuHolder ul li.s4 a {background:#bbb;}
.menuHolder ul li.s5 a {background:#ccc;}
.menuHolder ul li.s6 a {background:#ddd;}
.menuHolder ul li.t2 a {background:#eee;}
.menuHolder ul li.t2 {margin-top:-50px; position:relative; z-index:9;}
.menuHolder ul li:hover ul li {margin-top:-15px;}
.menuHolder ul li:hover ul li:before {opacity:1;}
.menuHolder ul li.t1:hover > a {background:#036; color:#fff;}
.menuHolder ul li.s1:hover > a {background:#258; color:#fff;}
.menuHolder ul li.s2:hover > a {background:#369; color:#fff;}
.menuHolder ul li.s3:hover > a {background:#47a; color:#fff;}
.menuHolder ul li.s4:hover > a {background:#58b; color:#fff;}
.menuHolder ul li.s5:hover > a {background:#69c; color:#fff;}
.menuHolder ul li.s6:hover > a {background:#7ad; color:#fff;}
.menuHolder ul li.t2:hover > a {background:#8be; color:#fff;}
</style>
<style media="only screen and (max-device-width:768px)" type="text/css">
.menuHolder ul li:hover + li.t2 {margin-top:-15px;}
.menuHolder ul li:hover + li.t2:before {opacity:1;}
</style>
<div class="menuHolder">
<ul>
<li class="t1"><a href="#">Menu</a>
<ul>
<li class="s1"><a href="#">Menu</a></li>
<li class="s2"><a href="#">Menu</a></li>
<li class="s3"><a href="#">Menu</a></li>
<li class="s4"><a href="#">Menu</a></li>
<li class="s5"><a href="#">Menu</a></li>
<li class="s6"><a href="#">Menu</a></li>
</ul>
</li>
<li class="t2"><a href="#">Close X</a></li>
</ul>
</div>

Author - interout
Date Added - 2012-08-26 в 11:27 PM
UcozBaze All Scripts And Templates » Scripts and Coding » Site Menu » Pull-out menu for the mobile version of the site for CSS3 (Pull-out menu for the mobile version of the site for CSS3)
Page 1 of 11
Search:
                                                               
Statistics Forum
New Posts Popular topic Top Forum Users New User

type list Pranešimai skrti jums yra matomi Tag Board Ucoz skriptas (1)
type list Why can’t I copy large files over 4GB to my USB flash drive (0)
type list Forumo Informatorius (2)
type list Pereiti i kita puslapi forume 1.2.3. Ucoz skriptas (1)
type list The script for the output of a random video from Youtube (0)
type list The script updates the block comment without refreshing the (0)
type list Information about your browser for uCoz (0)
type list Kaip isideti Forum Online/Offline Image Ucoz ? (4)
type list Highlight the code in one click (0)
type list The original form of statistics for uCoz (0)

type list Skaiciuojam nuo 1 iki 1000 ! (557)
type list Forum SignatureBar (60)
type list Avatars (22)
type list Juokingos Fotkes :) (19)
type list Kaip pakeisti paveiksla mazas? (19)
type list Mini-Chatas islendantis is sono ucoz (15)
type list Mp3-Tau.do.am (13)
type list Шаблон форума для ucoz For-css (12)
type list Ucoz script - favicon (11)
type list Slider KinoPlius Help to setup :) (10)

interout
GoblinaS
Adi
Esquire
BAtman
WaSHkaZ
Skacikas
meskis
Gytenas
vicka

firdaus085
miljanliverpool
llfc20
designcobras
AnelsoNN
nemanjababin
defaultNick0568
mechoochite
mdcurren
yastreb


Site design by uCozBaze
uCozBaze © 2011-2016