Map Location Hover demo

Developer
Size
3,439 Kb
Views
22,264

How do I make an map location hover demo?

Just a quick demo of an idea for displaying office locations etc. in text and an adjacent map. Also a little test with SASS maps!. What is a map location hover demo? How do you make a map location hover demo? This script and codes were developed by Jarad Light on 09 October 2022, Sunday.

Map Location Hover demo Previews

Map Location Hover demo - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Map Location Hover demo</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="wrapper"> <div class="map"> <a href="#" class="marker toronto"><i class="fa fa-map-marker fa-lg"></i></a> <a href="#" class="marker vancouver"><i class="fa fa-map-marker fa-lg"></i></a> <a href="#" class="marker montreal"><i class="fa fa-map-marker fa-lg"></i></a> <a href="#" class="marker los-angeles"><i class="fa fa-map-marker fa-lg"></i></a> </div> <div class="copy"> <h2 class="heading">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras dictum metus elit, ac consectetur elit varius eget. <a href="#" class="toronto">Toronto</a>, <a href="#" class="vancouver">Vancouver</a>, <a href="#" class="montreal">Montreal</a>, at <a href="#" class="los-angeles">Los Angeles</a> lorem aliquet eget. Mauris egestas arcu vel tempor varius.</h2> <p class="copy">Mauris aliquam non quam id suscipit. Suspendisse euismod lectus id massa porta cursus. Nunc mattis sem dictum congue posuere. Duis vel magna eros. Nulla pretium lorem nec lectus ullamcorper posuere. Curabitur non imperdiet magna. Pellentesque interdum feugiat tempus. Suspendisse ut sollicitudin nulla. Praesent arcu est, vestibulum eget arcu sed, tincidunt rutrum urna</p> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Map Location Hover demo - Script Codes CSS Codes

* { -moz-transition: all 0.25s ease; -o-transition: all 0.25s ease; -webkit-transition: all 0.25s ease; transition: all 0.25s ease;
}
.container { width: 100%;
}
.wrapper { width: 850px; margin: 0 auto; overflow: hidden; background-image: url("http://upload.wikimedia.org/wikipedia/commons/1/17/BlankMap-World-noborders.png");
}
.copy { width: 60%; float: right;
}
.copy h2, .copy p { width: 100%;
}
.copy a:hover, .copy a.hover { color: red;
}
.map { width: 40%; float: left; position: relative; background: green; height: 100%; display: block;
}
.map a { text-decoration: none; position: absolute; font-size: 18px; text-align: center; vertical-align: bottom; display: block; -moz-transform-origin: center bottom 50%; -ms-transform-origin: center bottom 50%; -webkit-transform-origin: center bottom 50%; transform-origin: center bottom 50%; font-family: "SS Standard";
}
.map a.hover, .map a:hover { -moz-transform: scale(2) translate(0, -5px); -ms-transform: scale(2) translate(0, -5px); -webkit-transform: scale(2) translate(0, -5px); transform: scale(2) translate(0, -5px); color: red;
}
.map a.toronto { top: 140px; left: 260px;
}
.map a.montreal { top: 130px; left: 280px;
}
.map a.vancouver { top: 117px; left: 110px;
}
.map a.los-angeles { top: 183px; left: 82px;
}

Map Location Hover demo - Script Codes JS Codes

;(function(){ $('.vancouver').hover(function(){ $('.vancouver').each(function(){ $(this).toggleClass('hover'); }); }); $('.toronto').hover(function(){ $('.toronto').each(function(){ $(this).toggleClass('hover'); }); }); $('.montreal').hover(function(){ $('.montreal').each(function(){ $(this).toggleClass('hover'); }); }); $('.los-angeles').hover(function(){ $('.los-angeles').each(function(){ $(this).toggleClass('hover'); }); });
})(jQuery);
Map Location Hover demo - Script Codes
Map Location Hover demo - Script Codes
Home Page Home
Developer Jarad Light
Username jaradlight
Uploaded October 09, 2022
Rating 3
Size 3,439 Kb
Views 22,264
Do you need developer help for Map Location Hover demo?

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!

Jarad Light (jaradlight) Script Codes
Create amazing sales emails 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!