Perspective Sidebar Vertical

3,669 Kb

How do I make an perspective sidebar vertical?

Perspective Sidebar Vertical. What is a perspective sidebar vertical? How do you make a perspective sidebar vertical? This script and codes were developed by MaCeLMp4 on 16 September 2022, Friday.

Perspective Sidebar Vertical Previews

Perspective Sidebar Vertical - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Perspective Sidebar Vertical</title> <link rel="stylesheet" href="css/style.css">
<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="" rel="stylesheet">
<body class="vertical"> <div class="wrapper"> <div class="menu"> <div class="hover-icon"> <i class="icon-align-justify"></i> </div> <ul> <li class="category"><a href="#">HOME</a></li> <li class="category"><a href="#">SEARCH</a></li> <li class="category"><a href="#">ABOUT US</a></li> <li class="category"><a href="#">CONTACT US</a></li> </ul> </div> <div class="container"> <div class="header"> <a href="" class="btn">StudioMp4 <span class="btn"></span></a> <a href="" class="btn">Back to Article <span class="btn"></span></a> <h1>Perspective Sidebar</h1> <a href="" class="btn">Horizontal Version<span class="btn"></span></a> </div> <p>Click on the menu up top</p> </div> </div> <!-- Javascript --> <script src=""></script>
</html> <script src="js/index.js"></script>

Perspective Sidebar Vertical - Script Codes CSS Codes

/* v2.0 | 20110126 License: none (public domain)
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {	margin: 0;	padding: 0;	border: 0;	font-size: 100%;	font: inherit;	vertical-align: baseline;
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {	display: block;
body {	line-height: 1;
ol, ul {	list-style: none;
blockquote, q {	quotes: none;
blockquote:before, blockquote:after,
q:before, q:after {	content: '';	content: none;
table {	border-collapse: collapse;	border-spacing: 0;
p { color: #444; margin-bottom: 30px; }
html,body { height: 100%; }
body { color: #fff; margin: 0 auto; font: 1em/1.3em Helvetica, sans-serif;	background-color: #333;
.header { margin-bottom: 40px;
.clearfix { clear: both;
.wrapper { height: 100%; -moz-perspective: 500; -webkit-perspective: 500; perspective: 500; -moz-perspective-origin: 50% 50%; -webkit-perspective-origin: 50% 50%; perspective-origin: 50% 50%; overflow: hidden;
.container { position: relative; z-index: 1; background-color: #ddd; padding-top: 20px; text-align: center; height: 100%; margin-left: 40px; transition: .5s; -webkit-transition: .5s; -webkit-transform: rotateY(0deg) translateX(0) scale(1); transform: rotateY(0deg) translateX(0) scale(1);
} body.vertical .container { margin-left: 0; margin-top: 40px; } .container.perspective { -webkit-transform: rotateY(-15deg) translateX(250px) scale(.9); transform: rotateY(-15deg) translateX(250px) scale(.9); } body.vertical .container { width: 100%; height: 110%; margin-left: 0; margin-bottom: -5%; -webkit-transform: rotateX(0deg) translateX(0) scale(1); transform: rotateX(0deg) translateX(0) scale(1); } body.vertical .container.perspective { -webkit-transform: rotateX(15deg) translateY(20%) scale(.9); transform: rotateX(15deg) translateY(20%) scale(.9); }
h1 { margin: 40px 0; font-size: 40px; line-height: 40px; font-weight: bold; text-shadow: 0px 1px 1px #888;
a { text-decoration: none; color: #fff; margin: 0 10px;
i { margin-right: 15px;
.btn { box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; position: relative; display: inline-block; padding: 10px 20px; height: 50px; background-color: #0099cc; border-radius: 30px; -moz-border-radius: 30px; -webkit-border-radius: 30px; line-height: 30px; font-size: 16px; font-weight: bold; text-shadow: 0px 1px 1px #888;
} a.btn span.btn { position: absolute; top: 4px; left: 0; z-index: -1; width: 100%; background-color: #00698d; } .btn:active, .btn:active > span.btn{ top: 2px; }, > span.btn { top: 2px; }
.btn-small { height: 30px; font-size: 12px; line-height: 10px;
} a.btn-small span.btn { height: 30px; }
/* Menu Styles */
.menu { height: 100%; width: 40px; background-color: #444; position: absolute; top: 0; left: 0; z-index: 0; cursor: pointer;
} .menu .hover-icon { position: relative; z-index: 10; font-size: 20px; width: 40px; height: 100%; text-align: center; } .menu .hover-icon i { position: absolute; width: 40px; top: 50%; left: 0; margin-top: -20px; } body.vertical .hover-icon i { margin: 0; } .menu ul { position: absolute; z-index: 0; left: 40px; top: 15%; width: 200px; height: 75%; margin-left: 10px; } .menu ul li { font-size: 12px; font-weight: bold; transition: .2s; -webkit-transition: .2s; } .menu ul li a { color: #ddd; } .menu ul li:hover { margin-left: 10px; } .menu ul li:hover a { color: #fff; } body.vertical .menu ul li:hover { margin-left: 0; background-color: #404040; }
body.vertical .menu { width: 100%; height: 40px;
} body.vertical .menu .hover-icon { position: static; margin: 0; height: 40px; font-size: 23px; line-height: 40px; width: 100%; } body.vertical .menu .hover-icon i { position: static; } body.vertical .menu ul { position: static; width: 80%; margin: 0 auto; } body.vertical .menu ul li { padding: 10px 0; text-align: center; border-bottom: 1px solid #666; }

Perspective Sidebar Vertical - Script Codes JS Codes

(function($){	$(function(){ $(".menu .hover-icon").click(function() { if ($(".container").hasClass("perspective")) { $(".container").removeClass("perspective"); } else { $(".container").addClass("perspective"); } });	}); // end of document ready
})(jQuery); // end of jQuery name space
Perspective Sidebar Vertical - Script Codes
Perspective Sidebar Vertical - Script Codes
Home Page Home
Developer MaCeLMp4
Username MaCeLMp4
Uploaded September 16, 2022
Rating 3
Size 3,669 Kb
Views 16,192
Do you need developer help for Perspective Sidebar Vertical?

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!

MaCeLMp4 (MaCeLMp4) Script Codes
Create amazing love letters 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!