gsap文字上蹿下跳动画效果

代码语言:html

所属分类:动画

代码描述:gsap文字上蹿下跳动画效果

代码标签: 动画 效果

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


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

<style>
@import url("https://fonts.googleapis.com/css?family=Bebas+Neue&display=swap");
:root {
  --animation-duration: 2400ms;
  --animation-timing-function: ease-in-out;
  --animation-iteration-count: infinite;
  --bg-color: #f378c7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.icons {
  display: none;
}

.container {
  position: relative;
  width: 400px;
  height: 260px;
}
.container--1 {
  --delay-offset: -1000ms;
}
.container--1 .text .char-container:nth-child(1) .icon {
  top: 50%;
  left: 10%;
}
.container--1 .text .char-container:nth-child(5) .icon {
  top: 15%;
  left: 50%;
}
.container--2 {
  --delay-offset: -2000ms;
}
.container--2 .text .char-container:nth-child(2) .icon {
  top: 60%;
  left: 10%;
}
.container--2 .text .char-container:nth-child(4) .icon {
  top: 75%;
  left: 80%;
}
.container .text-container,
.container .shadow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.container .text {
  position: absolute;
  top: 50%;
  display: flex;
  font-size: 12rem;
  font-fami.........完整代码请登录后点击上方下载按钮下载查看

网友评论0