div+css实现文字字母拆分loading动画效果代码

代码语言:html

所属分类:加载滚动

代码描述:div+css实现文字字母拆分loading动画效果代码

代码标签: div css 文字 字母 拆分 loading 动画

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


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

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

h2 {
  font-size: 40px;
  line-height: 46px;
  display: inline-block;
}

.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

body {
  overflow: hidden;
  position: relative;
  font-family: "Raleway", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #0f182a;
}

.bg-1 {
  width: 100vw;
  height: 100vh;
  opacity: 0;
  animation: page-up 1s ease 0s none;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background: linear-gradient(to right, #da1c60 0%, rgba(243, 102, 31, 0.9) 100%);
}

@keyframes page-up {
  0% {
    transform: translateY(0%);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 1;
  }
}
.loading-data {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-text .char {
  opacity: 0;
  animation: loading-text 2s infinite ease-in-out;
  display: inline-block;
  color: #fff;
}
.loading-text .char:nth-child(1) {
  animation-delay: .........完整代码请登录后点击上方下载按钮下载查看

网友评论0