tile/popup fade animation

This commit is contained in:
Mourner 2011-04-08 11:55:32 +03:00
parent 90a66c96e1
commit 728c7920f2
2 changed files with 34 additions and 6 deletions

30
dist/leaflet.css vendored
View File

@ -26,12 +26,6 @@
-moz-user-select: none;
-webkit-user-select: none;
}
.leaflet-tile {
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-marker-icon,
.leaflet-marker-shadow {
display: block;
@ -56,6 +50,30 @@
}
.leaflet-tile {
opacity: 0;
-webkit-transition: opacity 0.2s linear;
-moz-transition: opacity 0.2s linear;
-o-transition: opacity 0.2s linear;
transition: opacity 0.2s linear;
}
.leaflet-tile-loaded {
opacity: 1;
}
.leaflet-popup {
-webkit-transition: opacity 0.2s linear;
opacity: 0;
}
.leaflet-map-pane .leaflet-popup {
opacity: 1;
}
/* Popup layout */
.leaflet-popup {

10
dist/leaflet.ie.css vendored
View File

@ -17,4 +17,14 @@
.leaflet-vml-shape {
width: 1px;
height: 1px;
}
.leaflet-tile {
visibility: hidden;
}
.leaflet-tile-loaded {
visibility: inherit;
}
.leaflet-popup {
opacity: 1;
}