Merge pull request #4094 from KonradowyPL/v3.0

Transition player markers properly
This commit is contained in:
mikeprimm 2024-06-02 13:00:03 -05:00 committed by GitHub
commit d00ff62426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -570,6 +570,14 @@
transition: all 0.6s ease-in-out 0s;
}
/* do not animate player movements when zooming */
.dynmap .leaflet-zoom-anim .leaflet-zoom-animated.playerMarker {
-moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
-o-transition: transform 0.25s cubic-bezier(0,0,0.25,1);
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
}
.dynmap .playerIcon {
margin-top: -16px;
margin-left: -16px;