@bloggiabao
%
%
%
%

Off-canvas side menu Kết hợp với Bullet List Accordion Menu

<style>
div#contentarea {
position: relative;
width: 100%;
-moz-transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-moz-transition: -moz-transform 0.5s;
/* transition settings */

-webkit-transition: -webkit-transform 0.5s;
transition: transform 0.5s;
}
input[type="checkbox"]#togglebox {
/* checkbox used to toggle menu state */
position: absolute;
left: 0;
top: 0;
visibility: hidden;
}
label#navtoggler {
/* Main label icon to toggle menu state */
z-index: 9;
display: block;
position: relative;
font-size: 8px;
/* change font size to change label dimensions. Leave width/height below alone */
width: 4em;
height: 2.5em;
top: 0;
left: 0;
text-indent: -1000px;
border: 0.6em solid black;
/* border color */
border-width: 0.6em 0;
cursor: pointer;
}
label#navtoggler::before {
/* inner strip inside label */
content: "";
display: block;
position: absolute;
width: 100%;
height: 0.6em;
top: 50%;
margin-top: -0.3em;
left: 0;
background: black;
/* stripes background color. Change to match border color of parent label above */
}
nav#offcanvas-menu {
/* Full screen nav menu */
width: 250px;
height: 100%;
top: 0;
left: 0;
z-index: 100;
visibility: hidden; /* this is for browsers that don't support CSS3 translate3d */
-moz-transform: translate3d(-250px, 0, 0);
-webkit-transform: translate3d(-250px, 0, 0);
transform: translate3d(-250px, 0, 0);
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: #C1F2BC;
display: block;
position: fixed;
text-align: center;
overflow: auto;
-moz-transition: -moz-transform 0.5s, visibility 0s 0.5s;
/* transition settings */
-webkit-transition: -webkit-transform 0.5s, visibility 0s 0.5s;
transition: transform 0.5s, visibility 0s 0.5s;
}
input[type="checkbox"]#togglebox:checked ~ div#contentarea {
margin-left: 10px;
-moz-transform: translate3d(250px, 0, 0);
-webkit-transform: translate3d(250px, 0, 0);
transform: translate3d(250px, 0, 0);
}
input[type="checkbox"]#togglebox:checked ~ nav#offcanvas-menu {
/* nav state when corresponding checkbox is checked */
-moz-transform: translate3d(0, 0, 0);
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: visible; /* this is for browsers that don't support CSS3 translate3d in showing the menu */
-moz-transition-delay: 0s; /* No delay for applying "visibility:visible" property when menu is going from "closed" to "open" */
-webkit-transition-delay: 0s;
transition-delay: 0s;
}
</style>

<!--chen-->
<style type="text/css">
.arrowlistmenu{
width: 250px; /*width of accordion menu*/
}
.arrowlistmenu .menuheader{ /*CSS class for menu headers in general (expanding or not!)*/
font: bold 14px Arial;
color: white;
background: black url(titlebar.png) repeat-x center left;
margin-bottom: 10px; /*bottom spacing between header and rest of content*/
text-transform: uppercase;
padding: 4px 0 4px 10px; /*header text is indented 10px*/
cursor: hand;
cursor: pointer;
}
.arrowlistmenu .openheader{ /*CSS class to apply to expandable header when it's expanded*/
background-image: url(titlebar-active.png);
}
.arrowlistmenu ul{ /*CSS for UL of each sub menu*/
list-style-type: none;
margin: 0;
padding: 0;
margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
}
.arrowlistmenu ul li{
padding-bottom: 2px; /*bottom spacing between menu items*/
}
.arrowlistmenu ul li a{
color: #A70303;
background: url(arrowbullet.png) no-repeat center left; /*custom bullet list image*/
display: block;
padding: 2px 0;
padding-left: 19px; /*link text is indented 19px*/
text-decoration: none;
font-weight: bold;
border-bottom: 1px solid #dadada;
font-size: 90%;
}
.arrowlistmenu ul li a:visited{
color: #A70303;
}
.arrowlistmenu ul li a:hover{ /*hover state CSS*/
color: #A70303;
background-color: #F3F3F3;
}
</style>

<input type="checkbox" id="togglebox" />
<nav id="offcanvas-menu">
<div class="arrowlistmenu">
<h3 class="menuheader expandable">Giấy in, giấy photo, bìa màu, giấy in màu Giấy in A4, A3, A5</h3>
<ul class="categoryitems">
<li><a href="#">Bìa màu, mica A4, A3</a></li>
<li><a href="#">Giấy in cacbon</a></li>
<li><a href="#">Giấy in khổ A1, A0</a></li>
<li><a href="#">Giấy in ảnh A4, A3</a></li>
<li><a href="#">Giấy in màu A4, A3</a></li>
<li><a href="#">Giấy ép plastics</a></li>
</ul>
</nav>
<div id="contentarea">
<label for="togglebox" id="navtoggler">Menu</label>
Menu
</div>


Link web tham khảo thêm :

http://www.javascriptkit.com
http://www.dynamicdrive.com

Từ khóa tìm kiếm :

Bullet List Accordion Menu
off-canvas side menu
Accordion Menu script

Ivietpr.com Blog Cá Nhân, Nền Tảng Blogger, Giao Diện Fletro : Xây dựng và phát triển nội dung, theo số liệu phân tích trên cấu trúc content của nhật ký trực tuyến digitalnomad.vn [ Blog Chạy Thử Nghiệm Đa Cấu Trúc ]

Bạn có thể thích những bài đăng này

  1. To insert a code use <i rel="pre">code_here</i>
  2. To insert a quote use <b rel="quote">your_qoute</b>
  3. To insert a picture use <i rel="image">url_image_here</i>
456





💰

Top Sản Phẩm Công Nghệ / Thiết Bị Điện Gia Dụng /,...
Về Trang Chủ
Chiến mã đường rừng
Chợ Thủy Hải Sản
Điện Thoại Samsung Galaxy S20 FE (8GB/256GB)

Xem Giá Bán

Lenovo Legion Y90 5G Chơi Game SmartPhone Snapdragon 8 Gen1 6.92 ''144Hz AMOLED E4 5600MAh 68W Siêu NFC 64MP

Xem Giá Bán

ASUS ROG Điện Thoại 6 Phiên Bản Giới Hạn Dimensity 9000 + Tặng 5G 6000MAh Pin 6.78 "165Hz AMOLED chơi Game Điện Thoại

Xem Giá Bán

Điện thoại Gaming Tecno POVA 3 (6+5GB)/128GB - Helio G88 | 7000 mAh | Sạc nhanh 33W

Xem Giá Bán

Thotgo.asia - Tel 0968 970 650 : Xưởng Sản Xuất Thớt Gỗ Các Loại
Biến Content Thành Tiền Bạc