Map Expand 1
How do I make an map expand 1?
What is a map expand 1? How do you make a map expand 1? This script and codes were developed by Chris Sargent on 29 November 2022, Tuesday.
Map Expand 1 - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Map Expand 1</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="card" ng-class="{'expanded': isExpanded}" ng-app="animation" ng-controller="animationCtrl"> <div class="card__section"> <div class="content"> <h1>Some Text</h1> <p>Lorem Ipsum akjdsfhkajdsfhkjadfhkajsdfhkj akjsdhfkjasd askdjfhaksjdfha sdf</p> </div> </div> <div class="card__map" ng-click="changeState()"></div> <div class="card__section"> <div class="content"> <h1>Some Text</h1> <p>Lorem Ipsum akjdsfhkajdsfhkjadfhkajsdfhkj akjsdhfkjasd askdjfhaksjdfha sdf</p> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Map Expand 1 - Script Codes CSS Codes
* { box-sizing: border-box; -webkit-transition: all ease 200ms; transition: all ease 200ms;
}
body,
html,
.card { width: 100%; height: 100%; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column;
}
.card__section { background-color: red; overflow: hidden;
}
.content { height: 70px;
}
.card__map { width: 100%; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; background: url('http://fillmurray.com/2000/2500') no-repeat center; background-size: cover;
}
.expanded .card__section { height: 0!important;
}
Map Expand 1 - Script Codes JS Codes
var app = angular.module('animation', []);
app.controller('animationCtrl', function($scope) { $scope.isExpanded = false; $scope.changeState = function() { if (!$scope.isExpanded) { var elements = document.getElementsByClassName("card__section"); var numEls = elements.length; for (i = 0; i < numEls; i++) { var height = elements[i].offsetHeight; elements[i].style.height = height + 'px'; } } $scope.isExpanded = !$scope.isExpanded; };
});
Developer | Chris Sargent |
Username | ChrisSargent |
Uploaded | November 29, 2022 |
Rating | 3 |
Size | 2,637 Kb |
Views | 10,120 |
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 |
A Pen by Chris Sargent | 1,483 Kb |
Text Alignment Test | 1,531 Kb |
Flexbox Linebreaks V2 | 1,914 Kb |
Travis Neilson, Splash Page Flexbox Test | 4,633 Kb |
Angular Animation Done Call Back | 2,520 Kb |
Speech Bubble, Bg Image | 2,716 Kb |
Angle Gradient | 1,937 Kb |
Angular Fixed Position Test | 2,341 Kb |
Flexbox Linebreaks V1 | 1,900 Kb |
Skewed | 2,370 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 |
IPhone5S SVG Space Grey | Onlinechris | 75,035 Kb |
The Fly | GianlucaGuarini | 3,405 Kb |
Nested table email layout | Massimo-cassandro | 2,355 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
Css3 only dropdown menu | Riogrande | 2,519 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
IbrahimJabbari-Effect14 | Ibrahimjabbari | 1,919 Kb |
See Through | Larrygeams | 77,410 Kb |
Client-side Email Validation | Collizo4sky | 1,538 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!