Safari bug using CSS transition-delay and CSS filters

岁酱吖の 提交于 2020-02-01 09:16:17

问题


I'm having an issue with CSS transition-delay not working correctly in Safari when used to transition CSS filters. It works fine in Chrome but in Safari the animation happens then happens again after the delay time has elapsed.

Anyone else seen this before or found a workaround?

Thanks in advance.

https://codepen.io/selfctrl/pen/GRRZeWe

.gray-dog {
    filter: grayscale(0);
    transition: filter 0.5s ease-in-out;
     transition-delay: 1s;
}

.gray-dog:hover {
  filter: grayscale(100%);
}

来源:https://stackoverflow.com/questions/58398034/safari-bug-using-css-transition-delay-and-css-filters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!