javascriptzepto

How to check if element is visible in Zepto


Zepto does not support jQuery's .is(':visible') technique.

So how do you check if an element is visible?


Solution

  • I've never used Zepto, but:

    .css('display') !== 'none'
    

    would probably work. Here's a demo.