Side Menu using AngularJS
How do I make an side menu using angularjs?
Simple side menu demonstration with ng-click+ng-class.. What is a side menu using angularjs? How do you make a side menu using angularjs? This script and codes were developed by Hélio Marcondes on 09 November 2022, Wednesday.
Side Menu using AngularJS - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Side Menu using AngularJS</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body ng-app="myApp" ng-controller="mainController">
<button ng-click="visible=!visible;">Click me to open the menu!</button>
<div ng-class="{'is-visible':visible}" class="menu"> <ul> <li <a href="#">Home</a></li> <li>Contact Us</li> <li>Careers</li> <li>About</li> </ul>
</div> </body> <script src='http://ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Side Menu using AngularJS - Script Codes CSS Codes
*{ list-style:none; text-decoration:none;
}
li{ letter-spacing:2px; padding:2px 2px;
}
.menu{ width:0px; height:400px; background-color:#ccc; position:fixed; left:0; border: none; -webkit-transition: width 0.5s ease-in-out; -moz-transition: width 0.5s ease-in-out; -o-transition: width 0.5s ease-in-out; transition: width 0.5s ease-in-out; overflow: hidden;
}
.menu.is-visible{ width:200px; -webkit-transition: width 0.5s ease-in-out; -moz-transition: width 0.5s ease-in-out; -o-transition: width 0.5s ease-in-out; transition: width 0.5s ease-in-out;
}
button{ position:absolute; top:0px; left:500px;
}
Side Menu using AngularJS - Script Codes JS Codes
var app = angular.module('myApp', []);
app.controller('mainController', function ($scope) {
});
Developer | Hélio Marcondes |
Username | haykou |
Uploaded | November 09, 2022 |
Rating | 3 |
Size | 1,988 Kb |
Views | 14,168 |
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!
Name | Size |
Multi step form | 5,689 Kb |
Skill Bar with Jquery | 2,470 Kb |
Custom scrollbar crossbrowser | 5,348 Kb |
Bootstrap Menu with Effect | 2,121 Kb |
Introduction to three.js | 1,916 Kb |
Search button expanding input submit | 2,065 Kb |
Speedometer, Velocimeter | 2,256 Kb |
Sticky Header using Jquery | 2,024 Kb |
Simple search using AngularJS | 1,802 Kb |
Simple Jquery Slider | 2,430 Kb |
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!
Name | Username | Size |
A Pen by lizz | Lizz | 10,068 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Google Maps API Ground Overlay | Boycetrus | 2,961 Kb |
SVG Icons Template | Legofsalmon | 2,618 Kb |
Material design - button rainbow circle | Kunukn | 3,652 Kb |
Delete Hover | Chungman93 | 2,557 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
A Pen by Stan Williams | Stanssongs | 6,706 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!