Turbo87 / leaflet-sidebar

A responsive sidebar for Leaflet maps
http://turbo87.github.io/leaflet-sidebar/examples/
MIT License
489 stars 157 forks source link

callback on animation end #16

Closed stefanocudini closed 10 years ago

stefanocudini commented 10 years ago

great job with this plugin, I am using it in many web maps!

I was trying to to understand if I can insert a callback at the end of the animation of opening or closing the panel. I have long studied the code that deals animation effect but I could not tell if it is a possible solution to this....

bye!

Turbo87 commented 10 years ago

Hi Stefano,

the plugin is using CSS transitions for the animation and falling back to no animations at all for older browsers. Have a look at http://css3.bradshawenterprises.com/transition-callbacks/ to read about how to add callbacks to these transitions. I might at some point add support for that directly to the plugin, but most likely not in the near future. I'll take pull requests though ;)

Tobias

2014-04-05 20:59 GMT+02:00 stefano cudini notifications@github.com:

great job with this plugin, I am using it in many web maps!

I was trying to to understand if I can insert a callback at the end of the animation of opening or closing the panel. I have long studied the code that deals animation effect but I could not tell if it is a possible solution to this....

bye!

— Reply to this email directly or view it on GitHubhttps://github.com/Turbo87/leaflet-sidebar/issues/16 .

stefanocudini commented 10 years ago

ok I document a bit about this, maybe I can do it and I will send the pull. But if you leave this issue open so others can see it better and maybe solve

Stef

stefanocudini commented 10 years ago

uooh cool!!