I'm making my div's of auto height disappear with nice transitions. I accidently found what I think is a bug in Chrome 31.0.
I've attempted to do a workaround since css3 can't handle transitions to/from auto height (there's lots of posts about that subject). So I have this code:
$(document).on("click","#test",function(){
var r =$(this).css("height")
$(this).css("height", r)
var foo = $("#test").css("height")
$(this).addClass("test")
$("#test").css("opacity","0")
setTimeout(afterWait,1000)
})
This works and looks really nice. See my fiddle http://jsfiddle.net/n3g83/1/. However, I have no need for the foo variable, but if I remove it the transition stops working as it should.
In FF and IE it works in both cases.
So anyways, I thought this might be useful for others struggling with this :)