question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow changing the duration of zoom animations

See original GitHub issue

Right 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:open
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
perliedmancommented, May 4, 2017

@hd719 if you run npm run watch, the build system will continously monitor the source for changes and rebuild.

1reaction
perliedmancommented, May 2, 2017

@hd719 you’re very welcome to do so, as far as I know no one is currently working on this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found