jquery - Query if class is already shown -


hello need able identify if given class "faded in":

private void fadein() {         // todo: check first if class shown! otherwise, don't run fade's out when run on faded in class         $(".hopscotch-bubble").fadein(new com.google.gwt.query.client.function() {             @override             public void f() {                 jsnihelper.infonotify("info", "fade in method invoked.");             }         });     } 

how do that?

gwtquery fadein finishes showing hidden element $(selector).visible() should return whether element visible.

but normally, if want take care of not running 2 animations, normal way in gquery , jquery stop pending animations.

$(selector).stop(true).fadein(...); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -