css实现文字字幕逐个放大动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现文字字幕逐个放大动画效果代码

代码标签: 字幕 逐个 放大 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
@import url("https://fonts.googleapis.com/css2?family=Bowlby+One+SC&display=swap");
.wrapper {
  display: flex;
  align-items: flex-start;
}
.wrapper p {
  font-size: 100px;
  font-family: Bowlby One SC, sans-serif;
  transform: scale(0.9, 1) rotatey(-10deg) translatey(0px);
  animation: 2.2s scaling cubic-bezier(0.45, 0, 0.55, 1) infinite;
  text-shadow: 0 0 #e8332e, 0 0 #fc9e05, 0 0 #891696;
  transform-origin: 50% 100%;
  color: #fff;
  position: relative;
  top: 10%;
  transform-style: preserve-3d;
  margin-right: 4px;
}
.wrapper p:nth-child(1) {
  animation-delay: 140ms;
}
.wrapper p:nth-child(2) {
  animation-delay: 280ms;
}
.wrapper p:nth-child(3) {
  animation-delay: 420ms;
}
.wrapper p:nth-child(4) {
  animation-delay: 560ms;
}
.wrapper p:nth-child(5) {
  animation-delay: 700ms;
}

@keyframes scaling {
  20% {
    text-shadow: 0px 0 #e8332e, 0px 0 #fc9e05, 0px 0 #891696;
    transform: scale(0.9, 1) rotatey(-10deg);
  }
  40% {
    transform: s.........完整代码请登录后点击上方下载按钮下载查看

网友评论0