Shadow artifacts during animation in IE9

后端 未结 5 2208
天涯浪人
天涯浪人 2021-02-19 15:59

Here are css, html and js to reproduce:

html:

123
345
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-19 16:23

    This solution worked for me - just animate the box-shadow attribute of the parent at the same time:

    $(function() {
        $('#outer').click(function() {
            $('#inner').slideUp();
            $(this).animate({'box-shadow': '0px 3px 2px rgba(0, 0, 0, 0.3)'});
        });
    });
    

提交回复
热议问题