Demo: Floating text labels

This example shows how you can have floating text lables that subtly move when the user pans the map, creating the illusion that the text exist in mid-air.

https://dagjomar.github.io/Leaflet.ParallaxMarker/examples/floating-labels.html

Demo: Floating Clouds

This example shows how you can have floating images on top of the map. In this case, an image of a cloud is used to make the point.

https://dagjomar.github.io/Leaflet.ParallaxMarker/examples/clouds.html

Minimum Example

The following example will stack a bunch of markers on top of each other in the z-axis

Notice that the offset doubles by a factor of 2 for a nice realistic effect

This minimum example shows how to place a few markers with different options for parallax effect

    var center = {lat: 63.417103647850126, lng: 10.403537750244142};

    L.Marker.parallax(center,{ parallaxZoffset: 0}).addTo(map);
    L.Marker.parallax(center,{ parallaxZoffset: 2}).addTo(map);
    L.Marker.parallax(center,{ parallaxZoffset: 4}).addTo(map);
    L.Marker.parallax(center,{ parallaxZoffset: 8}).addTo(map);
    L.Marker.parallax(center,{ parallaxZoffset: 16}).addTo(map);
    L.Marker.parallax(center,{ parallaxZoffset: 32}).addTo(map);
https://dagjomar.github.io/Leaflet.ParallaxMarker/examples/minimum-example.html