Allow changing the duration of zoom animations
See original GitHub issueRight now there is a duration
option for pan animations, and for zoom/pan animations (fitbounds, setview). It would be nice to have a duration
option also for the zoom animation, e.g.:
map.zoomIn(1, { duration: 0.5 })
The duration of the zoom animation is defined in two places: in the CSS definition of .leaflet-zoom-animated
, and in the private _animateZoom
method of L.Map
.
The idea would be to get the duration out of the CSS, and define it dynamically in _animateZoom
via this._mapPane.style[DomUtil.TRANSITION] = '...'
, along for the timeout for _onZoomTransitionEnd
.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Basic user meeting duration changes - Zoom Support
On July 15, 2022, Zoom is changing the meeting duration limit for 1:1 meetings hosted by Basic (free) users on paid accounts to...
Read more >Zoom In to Focus Attention | Camtasia - TechSmith
To change the animation duration, drag either end of the arrow. Lengthen the animation arrow on the timeline. To zoom out, drag the...
Read more >Use zoom for PowerPoint to bring your presentation to life
To change the timing of the zoom transition, use the up and down arrows next to the Duration indicator to change how long...
Read more >How can I animate (zoom in/out) my photos or videos – Ken ...
To change the speed of Ken Burns, change your photo duration. The longer the duration, the slower the Ken Burns effect: On the...
Read more >How to make Slide Zoom Animation in Microsoft PowerPoint
Zoom in PowerPoint allows you to present presentations more dynamically, allowing you to jump to the sections or slides that your audience ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hd719 if you run
npm run watch
, the build system will continously monitor the source for changes and rebuild.@hd719 you’re very welcome to do so, as far as I know no one is currently working on this.