I have the following button :
HTML :
<button id='foo' style='display: none; opacity: 0'>Foo</button>
CSS :
    #foo {
      transition: opacity .5s ease-in-out;
      -moz-transition: opacity .5s ease-in-out;
      -webkit-transition: opacity .5s ease-in-out;
    }
JS :
  $('#foo').css('display', '');
  $('#foo').css('opacity', '');
It's working in a sense, the button does appear, but without the animation. So I am not sure what's the issue here. Does anyone have any idea ?
Also, I don't want suggestions mentioning visibility because that's not the point here. Thanks !
 
     
    