相关疑难解决方法(0)

在悬停时更改动画速度

我正在构建一个行星系统,可以将其悬停在轨道上并且动画速度会发生变化.
我尝试使用onMouseOver和.hoverjquery,但我无法弄清楚它为什么不起作用.

#universum-planet1 {
  position: absolute;
  height: 250px;
  width: 250px;
  top: 40%;
  left: 50%;
  margin-left: -125px;
  margin-top: -65px;
  z-index: 1;
  border: 1px solid #989898;
  -webkit-border-radius: 225px;
  -moz-border-radius: 225px;
  border-radius: 225px;
  -webkit-animation: spin 15s linear infinite;
  -moz-animation: spin 15s linear infinite;
  animation: spin 15s linear infinite;
  -moz-transform-origin: center center;
  -webkit-transform-origin: center center;
  transform-origin: center center;
}
#planet1 {
  position: absolute;
  top: 5%;
  left: 5%;
  height: 50px;
  width: 50px;
  z-index: 2;
  -webkit-animation: spin 30s linear infinite;
  -moz-animation: spin …
Run Code Online (Sandbox Code Playgroud)

css hover css3 css-animations

6
推荐指数
1
解决办法
3354
查看次数

标签 统计

css ×1

css-animations ×1

css3 ×1

hover ×1