CSS Map FX
How do I make an css map fx?
Experimenting with css filters, lefalet and mapbox satellite tiles.. What is a css map fx? How do you make a css map fx? This script and codes were developed by Moklick on 20 November 2022, Sunday.
CSS Map FX - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS Map FX</title> <link rel='stylesheet prefetch' href='http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ *{padding:0;margin:0;} html,body{width:100%;height:100%;} body, #map { background: #000; } #map { height: 100%;} .leaflet-tile{ -webkit-filter:blur(10px); -moz-filter:blur(10px); filter:blur(10px); } .leaflet-tile.leaflet-tile-loaded{ -webkit-filter:blur(0); -moz-filter:blur(0); filter:blur(0); transform: rotateX( 360deg ); transition:1.5s all ease-in; } </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="map"></div>
<!-- https://www.mapbox.com/about/maps/ --> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/leaflet/0.6.4/leaflet.js'></script> <script src="js/index.js"></script>
</body>
</html>
CSS Map FX - Script Codes CSS Codes
*{padding:0;margin:0;} html,body{width:100%;height:100%;} body, #map { background: #000; } #map { height: 100%;} .leaflet-tile{ -webkit-filter:blur(10px); -moz-filter:blur(10px); filter:blur(10px); } .leaflet-tile.leaflet-tile-loaded{ -webkit-filter:blur(0); -moz-filter:blur(0); filter:blur(0); transform: rotateX( 360deg ); transition:1.5s all ease-in; }
CSS Map FX - Script Codes JS Codes
var MFX = (function(L,undefined){ function init(){ var map = new L.Map('map', { center: new L.LatLng(52.520, 13.385), zoom: 15 }), layer = new L.tileLayer('http://{s}.tiles.mapbox.com/v3/moklick.lh736gg3/{z}/{x}/{y}.png', { minZoom: 5, maxZoom: 18 }); map.addLayer(layer); return this; }; return { init : init }
}(L));
MFX.init();
Developer | Moklick |
Username | moklick |
Uploaded | November 20, 2022 |
Rating | 4 |
Size | 2,335 Kb |
Views | 32,384 |
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 moklick | 33,698 Kb |
Damn Particlez | 2,805 Kb |
Watch the cursor | 1,657 Kb |
3D Mapbox | 3,508 Kb |
CSS Color Fading | 1,975 Kb |
3D Map Example | 2,980 Kb |
Berlin Building Map | 2,477 Kb |
Codepen Inception | 1,384 Kb |
CSS Map FX | 2,335 Kb |
... is watching you | 2,423 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 |
Practice using Wixel | Emnk | 3,057 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
Very Simple Slider | Doodlemarks | 2,682 Kb |
RSW | JordanC | 3,726 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
Fluid Layout with Float | Jxqr97 | 1,785 Kb |
Fun form with currentColor | Bnthor | 2,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!