split文字分割加载动画

代码语言:html

所属分类:加载滚动

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

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

<title> Split Loading Animation</title>

<link rel='stylesheet' href='http://repo.bfw.wiki/bfwrepo/css/splitting.css'>
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Montserrat&amp;display=swap"rel="stylesheet'>

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

body {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Montserrat;
  font-size: 3rem;
  color: #fff;
  background-image: linear-gradient(120deg, #89f7fe 0%, #66a6ff 100%);
}

.wrapper {
  height: 200px;
  width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading .char {
  overflow: hidden;
  color: transparent;
  letter-spacing: 2px;
}
.loading .char:before, .loading .char:after {
  visibility: visible;
  color: #000;
}
.loading .char:before {
  animation: _before 1.8s cubic-bezier(0.9, 0, 0..........完整代码请登录后点击上方下载按钮下载查看

网友评论0