Sliding side menu with icons

Size
2,357 Kb
Views
30,360

How do I make an sliding side menu with icons?

Sliding side menu with icons. HTML5&CSS3 only. . What is a sliding side menu with icons? How do you make a sliding side menu with icons? This script and codes were developed by Deyan Dimitrov on 13 November 2022, Sunday.

Sliding side menu with icons Previews

Sliding side menu with icons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sliding side menu with icons</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
</head>
<body> <nav class="side-menu"> <ul> <li><a href="#">What to do?<span><i class="fa fa-map-marker"></i></span></a></li> <li><a href="#">Where to go?<span><i class="fa fa-compass"></i></span></a></li> <li><a href="#">Services<span><i class="fa fa-bicycle"></i></span></a></li> <li><a href="#">Accomodation<span><i class="fa fa-bed"></i></span></a></li> <li><a href="#">Free Time<span><i class="fa fa-book"></i></span></a></li> <li><a href="#">Food&Drnk<span><i class="fa fa-beer"></i></span></a></li> </ul> </nav>
</body> <script src="js/index.js"></script>
</body>
</html>

Sliding side menu with icons - Script Codes CSS Codes

body { font-size: 1em; background: #333; font-family: 'Roboto', Arial, Verdana, sans-serif;
}
.side-menu { width:14em; height: auto; margin:4em auto 0; font-size: 1em; line-height: 2em; color: #fff; font-weight:700; text-transform:uppercase; position:absolute; top:0; bottom:0; left: -10em;
}
.side-menu ul { list-style: none; margin: 0; padding: 0;
}
.side-menu ul li { display:block; background-color: #333; height: 2em; padding: 1em 1.5em; position: relative; -webkit-transition: -webkit-transform 0.5s, background-color .5s, color .5s; transition: transform .5s, background-color .5s, color .5s;
}
/*the colors of the different columns*/
.side-menu ul li:nth-child(1) { background-color: #00aced;}
.side-menu ul li:nth-child(2) { background-color: #3b5998;}
.side-menu ul li:nth-child(3) { background-color: #00a300;}
.side-menu ul li:nth-child(4) { background-color: #1e7145;}
.side-menu ul li:nth-child(5) { background-color: #ffc40d;}
.side-menu ul li:nth-child(6) { background-color: #cb2027;}
.side-menu ul li:hover { background-color: #339966; /*you can make different colors depending on the nth-child like above*/ -webkit-transform: translateX(10em); transform: translateX(10em);/*equal to left in the .side-menu*/
}
.side-menu ul li a { display:block; color: #FFF; text-decoration: none;
}
.side-menu ul li span { display:block; position: absolute; font-size:1em; line-height: 2em; height:2em; top:0; bottom:0; margin:0 auto; padding:1em 1.5em; right: 0.16666666666667em; color: #F8F6FF;
}

Sliding side menu with icons - Script Codes JS Codes

//forked from here: https://codepen.io/roccop/pen/Jxutd
Sliding side menu with icons - Script Codes
Sliding side menu with icons - Script Codes
Home Page Home
Developer Deyan Dimitrov
Username deyand
Uploaded November 13, 2022
Rating 3
Size 2,357 Kb
Views 30,360
Do you need developer help for Sliding side menu with icons?

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!

Deyan Dimitrov (deyand) Script Codes
Create amazing web content 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!