unveil icon indicating copy to clipboard operation
unveil copied to clipboard

New check in :hidden not working with zepto

Open teejot opened this issue 10 years ago • 3 comments

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

teejot avatar Mar 08 '14 18:03 teejot

I thought Zepto is dead. actually it is dead..

yairEO avatar Mar 30 '14 13:03 yairEO

Now with if ($e.is(":hidden")) check fadein effects do not work (opacity:0 > opacity:1). @teejot's suggestion could be a good alternative.

xpepermint avatar May 19 '14 12:05 xpepermint

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

jtrolle avatar May 23 '16 17:05 jtrolle