Css action sideBar

Developer
Size
3,928 Kb
Views
4,048

How do I make an css action sidebar?

What is a css action sidebar? How do you make a css action sidebar? This script and codes were developed by Uriuriuriu on 10 January 2023, Tuesday.

Css action sideBar Previews

Css action sideBar - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>css action sideBar</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Economica:400,700'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav id="sidebar"> <dl id="sidebar_list"> <dt> <a href=""><i class="icon-a"></i><br />home</a> </dt> <dd> <ul> <li> <a>yes01</a> </li> <li> <a>yes02</a> </li> <li> <a>yes03</a> </li> <li> <a>yes04</a> </li> <li> <a>yes05</a> </li> </ul> </dd> <dt> <a href=""><i class="icon-b"></i><br />list</a> </dt> <dd> <ul> <li> <a>no01</a> </li> <li> <a>no02</a> </li> <li> <a>no03</a> </li> <li> <a>no04</a> </li> <li> <a>no05</a> </li> </ul> </dd> <dt> <a href=""><i class="icon-c"></i><br />setting</a> </dt> <dd> <ul> <li> <a>opp01</a> </li> <li> <a>opp02</a> </li> </ul> </dd> </dl>
</nav>
<div id="comment"> Please hover over sideber.
</div>
</body>
</html>

Css action sideBar - Script Codes CSS Codes

/* var */
/* mixin */
/* animation */
@keyframes show_child { 0% { left: -120px; } 100% { left: 80px; }
}
@-webkit-keyframes show_child { 0% { left: -120px; } 100% { left: 80px; }
}
@keyframes hide_child { 0% { left: 80px; } 100% { left: -120px; }
}
@-webkit-keyframes hide_child { 0% { left: 80px; } 100% { left: -120px; }
}
/* icon */
/* this is dammy icon's css. please use there icon set. http://fontello.com/
*/
i[class^="icon-"]:before { font-family: 'Economica', sans-serif; font-size: 100px;
}
i.icon-a:before { content: "A";
}
i.icon-b:before { content: "B";
}
i.icon-c:before { content: "C";
}
/* main */
dl#sidebar_list:after { content: ""; display: block; position: fixed; top: 0px; left: 0px; width: 80px; height: 100%; background-color: #333; -webkit-box-shadow: 8px 0 20px rgba(0, 0, 0, 0.1); -moz-box-shadow: 8px 0 20px rgba(0, 0, 0, 0.1); box-shadow: 8px 0 20px rgba(0, 0, 0, 0.1);
}
dl#sidebar_list { font-family: 'Economica', sans-serif; position: fixed; top: 0px; left: 0px; width: 80px; height: 100%; background-color: #333;
}
dl#sidebar_list dt { position: relative; z-index: 100; list-style-type: none; text-align: center;
}
dl#sidebar_list dt a { color: #555; font-weight: bold; text-decoration: none; display: block; padding: 20px; transition: color 0.5s ease-in; transition: background-color 0.5s ease-in;
}
dl#sidebar_list dt a:hover { color: #f89406; background-color: #222;
}
dl#sidebar_list dd { /* Firefox 4+ */ -moz-animation-name: hide_child; -moz-animation-timing-function: ease-out; -moz-animation-iteration-count: once; -moz-animation-duration: 0.3s; /* Webkit */ -webkit-animation-name: hide_child; -webkit-animation-timing-function: ease-out; -webkit-animation-iteration-count: once; -webkit-animation-duration: 0.3s; display: block; position: fixed; top: 0px; left: -200px; width: 200px; height: 100%; background-color: rgba(0, 0, 0, 0.7);
}
dl#sidebar_list dd li { list-style-type: none; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, 0.2); overflow: hidden;
}
dl#sidebar_list dd li a { color: #f89406; display: block; font-size: 20px; padding: 0.8em; height: 1em; line-height: 1em; transition: color 0.5s ease-in; transition: background-color 0.5s ease-in;
}
dl#sidebar_list dd li a:hover { color: #fff; text-decoration: none; background-color: #f89406;
}
/* Activating the animation */
dl#sidebar_list dt:hover + dd,
dl#sidebar_list dd:hover { display: block; left: 80px; /* Firefox 4+ */ -moz-animation-name: show_child; -moz-animation-timing-function: ease-out; -moz-animation-iteration-count: once; -moz-animation-duration: 0.3s; /* Webkit */ -webkit-animation-name: show_child; -webkit-animation-timing-function: ease-out; -webkit-animation-iteration-count: once; -webkit-animation-duration: 0.3s;
}
/* discription */
body { background-color: #aa2244;
}
div#comment { font-family: 'Economica', sans-serif; padding: 30px 0 0 110px; color: #eee; font-size: 50px;
}
Css action sideBar - Script Codes
Css action sideBar - Script Codes
Home Page Home
Developer Uriuriuriu
Username uriuriuriu
Uploaded January 10, 2023
Rating 3.5
Size 3,928 Kb
Views 4,048
Do you need developer help for Css action sideBar?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Uriuriuriu (uriuriuriu) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!