CSS Map FX

Developer
Size
2,335 Kb
Views
32,384

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 Previews

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();
CSS Map FX - Script Codes
CSS Map FX - Script Codes
Home Page Home
Developer Moklick
Username moklick
Uploaded November 20, 2022
Rating 4
Size 2,335 Kb
Views 32,384
Do you need developer help for CSS Map FX?

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!

Moklick (moklick) Script Codes
Create amazing video scripts 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!