unveil
unveil copied to clipboard
New check in :hidden not working with zepto
Hi,
I've just tried to use unveil.js with zepto and always got an javascript error.
After some investigation I think it is linked to a missing check on Zepto against ":hidden".
I suggest a check like: if($e.css('display')=='hidden' || $e.css('visibility')=='hidden' || $e.height()==0) return;
which seems to work in my tests.
Regards, Torben
I thought Zepto is dead. actually it is dead..
Now with if ($e.is(":hidden"))
check fadein effects do not work (opacity:0 > opacity:1). @teejot's suggestion could be a good alternative.
Check Zepto Modules and add the modules that you need.
You must add at least selector.js, you can build your version with the builder