Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Add zoom animation, fix #20#21

Open
corg wants to merge 3 commits intoeJuke:masterfrom
corg:animate-zoom
Open

Add zoom animation, fix #20#21
corg wants to merge 3 commits intoeJuke:masterfrom
corg:animate-zoom

Conversation

@corg
Copy link
Copy Markdown

@corg corg commented Sep 12, 2018

Fixed animation on zoom (see #20) by adding zoomanim event handler, which applies CSS transformation to canvas element similar to how Leaflet's ImageOverlay does it.

after

Also removed transform-origin: 50% 50% from canvas element since it only got in the way of calculations for zoom animation - the only place where CSS transformations were used.

@DavidLibeau
Copy link
Copy Markdown

That's cool, thanks! 👍

@jcimoch
Copy link
Copy Markdown

jcimoch commented Oct 16, 2018

Is it going to be merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants