Map Expand 1

Developer
Size
2,637 Kb
Views
10,120

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 Previews

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; };
});
Map Expand 1 - Script Codes
Map Expand 1 - Script Codes
Home Page Home
Developer Chris Sargent
Username ChrisSargent
Uploaded November 29, 2022
Rating 3
Size 2,637 Kb
Views 10,120
Do you need developer help for Map Expand 1?

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!

Chris Sargent (ChrisSargent) Script Codes
Create amazing Facebook ads 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!