Map Location Hover demo
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 - 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);
Developer | Jarad Light |
Username | jaradlight |
Uploaded | October 09, 2022 |
Rating | 3 |
Size | 3,439 Kb |
Views | 22,264 |
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 |
RPG Tool | 3,422 Kb |
Simple Menu | 2,790 Kb |
Dropdown styles | 2,097 Kb |
Sass Placeholder Stuff | 1,751 Kb |
A Pen by Jarad Light | 2,453 Kb |
Input File behaviours | 2,550 Kb |
Animated Checkboxes | 2,911 Kb |
Loading Bar | 2,333 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 |
Toolbar | Onsen | 5,414 Kb |
Word Wrap Algorithm for Multiline Canvas Text | Peterhry | 2,349 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
RPG Style Text Dialogue | Odylic | 2,635 Kb |
Incremental game | Eprouver | 5,868 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
A Pen by Eka Risyana | Risyana | 3,705 Kb |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 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!