📜  css 动画罪 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:42.408000             🧑  作者: Mango

代码示例1
div{
  position:absolute;
  left:0;
  width:10%;
  animation: translate 15s infinite linear;
}
img {
  position:absolute;
  animation: upDown 1.5s alternate infinite ease-in-out;
  width:100%;
}

@keyframes upDown {
  to { transform: translatey(100px);}
}
@keyframes translate {
  to { transform: translatex(900%);}
}


/*
*/