控制animation暂停:animation-play-state

.active {
  animation-play-state: running;
}
.paused {
  animation-play-state: paused;
}

IOS低版本机型不支持animation-play-state

兼容写法:
@supports not(animation-play-state){
    .active {
        animation: 动画名字 2s linear infinite;
    }
    .paused {
        animation: '' 2s linear infinite;
    }
}        

不知道@supports是干嘛的可以看我前面写的这篇:使用@supports完美兼容CSS属性

 
青云直上三千码
原文地址:https://www.cnblogs.com/djjlovedjj/p/14785387.html