css实现文字字母摇摆动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现文字字母摇摆动画效果代码

代码标签: css 文字 字母 摇摆 动画

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  


  
  
  
<style>
body{
  font-size: 99px;
  margin: 50px;
  padding: 50px;
  color: #fcc;
  background: #446;
  letter-spacing: 20%;
}
div{
  transform: scale(1,1.1) skew(30deg,0);
  display: inline-block;
  transform-origin: 0% 100%;
  margin: 0;
  text-decoration: underline 1px;
  text-underline-offset: 4px;
}

.a1{
  animation: anim 1s infinite;  
  animation-delay: 0.0s;
}
.a2{
  animation: anim 1s infinite;
  animation-delay: 0.05s;  
}
.a3{
  animation: anim 1s infinite;
  animation-delay: 0.10s;  
}
.a4{
  animation: anim 1s infinite;
  animation-delay: 0.15s;  
}
.a5{
  animation: anim 1s infinite;
  animation-delay: 0.20s;  
}
.a6{
  animation: anim 1s infinite;  
  animation-delay: 0.25s;
}
.a7{
  animation: anim 1s infinite;
  animation-delay: 0.3s;  
}
.a8{
  animation: anim 1s infinite;
  animation-delay: 0.35s;  
}
.a9{
  animation: anim 1s infinite;
  animation-delay: 0.4s;  
}
.a10{
  animation: anim 1s infinite;
  animation-delay: 0.45s;  
}


@keyframes anim {
  0% {
    transform: scale(1,1.1) skew(30deg,0);
  }
  50% {
    transform: scale(1,1.1) skew(-30deg,0);
  }
  100% {
    transform: scale(1,1.1) skew(30deg,0);
  }
  
}
</style>

  
  
</head>

<body translate="no">
  <div class="a1">T</div>
<div class="a2">h</div>
<div class="a3">e</div>
<div> </div>
<div class="a4">q</div>
<div class="a5">u.........完整代码请登录后点击上方下载按钮下载查看

网友评论0