📜  文字幻灯片动画css代码示例

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

代码示例1
.slide-right {
  width: 100%;
  overflow: hidden;
  margin-left: 400px;
  max-width: 500px
}

.slide-right h2 {
  animation: 2s slide-right;
  animation-delay: 2s;
}

@keyframes slide-right {
  from {
    margin-left: -500px;
  }

  to {
    margin-left: 0%;
  }
}