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 |
Leaflet Transition Example | 33,818 Kb |
Codepen Inception | 1,384 Kb |
Responsive Codepen Glitch | 2,838 Kb |
Money Over Everything | 3,392 Kb |
Watch the cursor | 1,657 Kb |
3D Map Example | 2,980 Kb |
Berlin Building Map | 2,477 Kb |
Fullscreen fun | 1,984 Kb |
3D Mapbox | 3,508 Kb |
CSS Color Fading | 1,975 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 |
Under construction | GhostRider | 1,642 Kb |
Custom Checkbox and radio inputs SCSS | Rgfx | 3,367 Kb |
Sketchy Box | Mnicpt | 3,033 Kb |
Minimal Menu | Achudars | 3,430 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
Firefox Breakout Guide | Quincysoeliman | 2,576 Kb |
Toolbar | Onsen | 5,414 Kb |
Background Images | Jooonebug | 2,100 Kb |
Drawing a Terminal with CSS | Lachlanjc | 3,185 Kb |
Delete Hover | Chungman93 | 2,557 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!