Wie überprüfe ich, ob die Deckkraft eines Elements 0 ist und mache dann etwas in jQuery?
Haben Sie versucht, .css () zu verwenden?
if($('elemFoo').css('opacity') == 0) {
doSomething();
}
Sie können als tun
$(function() {
if ($('#foo').css('opacity') == 0)
alert('lol');
});
if( $("#id_of_your_thing").css('opacity') == "0" )
do_stuffs();
Um Opazität zu finden, tust du
var x = $('#test').css('opacity');
x==0 ? alert('opacity is 0') : alert('Opacity is not 0');
var currentOpacity = jQuery.fx.step.opacity if(currentOpacity == 0) { ...
jquery.support.opacity
auf jQuery 1.7.1 scheint zu funktionieren