lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.22k stars 1.77k forks source link

I wanna use Zepto.js instead of jQuery #521

Closed WhiteCat6142 closed 8 years ago

WhiteCat6142 commented 8 years ago

Zepto.js is an alternative to heavy jQuery.However,it doesn't support all jQuery methods,so lightbox2-zepto.js doesn't works.

Here is an error: TypeError: this.$outerContainer.outerWidth is not a function

(just note: animate() is optional)

blueforesticarus commented 8 years ago

You could roll your own functions and add them to zepto as plugins.

This gist should work for you: https://gist.github.com/wheresrhys/5823198#file-gistfile1-txt

lokesh commented 8 years ago

I'm closing this issue but keeping the following PR open: https://github.com/lokesh/lightbox2/pull/522

For v3 which is still in planning stages I will likely remove all JS deps.