animation-play-state: paused;暂停动画的问题

animation-play-state: paused;暂停动画的问题
在其他浏览器上都正常 safari16版本上 hover暂停的时候 动画会回到初始状态 safari14版本的也是正常的

.index-more a {
  position: relative;
  z-index: 1;
  width: 13rem;
  height: 13rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0 01em;
  word-spacing: 0 01em;
  width: 130px;
  height: 130px;
}

.index-more a .out {
  left: 0;
  position: absolute;
  width: 130px;
}
.index-more a .inner {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  width: 80px;
}

.index-more a .out {
  animation: rotateReverse normal infinite 20s linear;
  transform-origin: 50% 50%;
}

.index-more a:hover .out {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  to {
    transform: rotate(-360deg);
  }
}

  • 这篇博客: 14-动画样式中的 动画的暂停(animation-play-state:paused;) 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
  • 默认running是默认值.

    可配合状态类伪类选择器操纵元素的动画状态

    .box:hover{
    		animation-play-state:paused;
    	}	
    

    复合写法

    animation: name(名称) duration(时间) timing-function(速率) delay(延迟) iteration-count(次数) direction(执行方向) fill-mode paly-state动画的暂停;