svg文字跳动效果

代码语言:html

所属分类:动画

代码描述:svg文字跳动效果

代码标签: 效果

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
html,
body {
  height: 100%;
}

body {
  background-color: black;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
}

.header {
  width: 90%;
  max-width: 400px;
}

g path {
  -webkit-transform: translateY(3px);
          transform: translateY(3px);
}

g:nth-child(1) path {
  -webkit-animation-name: wiggleWiggle;
          animation-name: wiggleWiggle;
  -webkit-animation-duration: 1.25s;
          animation-duration: 1.25s;
  -webkit-animation-direction: alternate;
          animation-direction: alternate;
  -webkit-animation-timing-function: steps(2, end);
          animation-timing-function: steps(2, end);
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

#E {
  -webkit-animation-delay: 0s;
          animation-delay: 0s;
}

#N {
  -webkit-animation-delay: 0.1s;
          animation-delay: 0.1s;
}

#T {
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}

#H {
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
}

#U {
  -webkit-animation-delay: 0.25s;
          animation-delay: 0.25s;
}

#S_2 {
  -w.........完整代码请登录后点击上方下载按钮下载查看

网友评论0