FadeOut() so FadeIn()
arjarn opened this issue · 2 comments
arjarn commented
Not sure if it's bug or not...
If I apply FadeOut() on simple label to hide it and apply FadeIn() to show it after action, I've "display: inline-block;" ou "display:block" style on it.
So result is... surprising.
Sample (and simple) code I'm using :
<a href="#>"<span class="tally alert ">bla bla bla ONE </span></a>
<a href="#>"<span class="tally alert ">bla bla bla TWO</span></a>
With events :
$("body").on("click", ".tally", function(e){
$(this).fadeOut();
});
$("body").on("dblclick", ".tally", function(e){
$(".tally").fadeIn();
});
How can I have initial page after double clicking ?
olton commented
var body = $("body");
body.on("click", ".tally", function(e){
console.log($(this).style("display")); // --> inline
$(this).fadeOut();
});
body.on("dblclick", ".tally", function(e){
$(".tally").fadeIn(function(){
console.log($(this).style("display")); // --> inline
});
});
olton commented
m4q use computed value
if value not defined in css
or style