mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-26 04:45:21 +00:00
🆕 重构加载动画
This commit is contained in:
parent
04e7583899
commit
d0cab9bab5
@ -2,8 +2,6 @@
|
|||||||
"name": "@h5-dooring/doc",
|
"name": "@h5-dooring/doc",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"description": "文档",
|
"description": "文档",
|
||||||
"author": "mokinzhao <zhaoyl3@yonghui.cn>",
|
|
||||||
"homepage": "https://github.com/mokinzhao/h5-Dooring#readme",
|
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,3 +1,14 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
export default () => <div className="rotate-animate">Dooring</div>;
|
export default () => (
|
||||||
|
<div className="rotate-animate">
|
||||||
|
<div className="line-scale-pulse-out">
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
<div></div>
|
||||||
|
</div>
|
||||||
|
<h3 style={{textAlign: 'center', fontStyle: 'italic', color: '#2842d8'}}>H5-Dooring, 让H5制作更简单</h3>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|||||||
@ -139,26 +139,42 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.rotate-animate {
|
.rotate-animate {
|
||||||
margin: 100px auto;
|
height: 100vh;
|
||||||
border:16px solid #f3f3f3;
|
|
||||||
border-radius:50%;
|
|
||||||
border-top:16px solid #2842d8;
|
|
||||||
width:130px;
|
|
||||||
height:130px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
animation:rotate 2s linear infinite;
|
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
@keyframes rotate{
|
|
||||||
0%{
|
@keyframes line-scale-pulse-out {
|
||||||
transform: rotate(0deg);
|
0% {
|
||||||
}
|
-webkit-transform: scaley(1);
|
||||||
100%{
|
transform: scaley(1); }
|
||||||
transform:rotate(360deg);
|
50% {
|
||||||
}
|
-webkit-transform: scaley(0.4);
|
||||||
}
|
transform: scaley(0.4); }
|
||||||
|
100% {
|
||||||
|
-webkit-transform: scaley(1);
|
||||||
|
transform: scaley(1); } }
|
||||||
|
|
||||||
|
.line-scale-pulse-out > div {
|
||||||
|
background-color: #2842d8;
|
||||||
|
width: 4px;
|
||||||
|
height: 35px;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin: 2px;
|
||||||
|
-webkit-animation-fill-mode: both;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
display: inline-block;
|
||||||
|
-webkit-animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85);
|
||||||
|
animation: line-scale-pulse-out 0.9s -0.6s infinite cubic-bezier(0.85, 0.25, 0.37, 0.85); }
|
||||||
|
.line-scale-pulse-out > div:nth-child(2), .line-scale-pulse-out > div:nth-child(4) {
|
||||||
|
-webkit-animation-delay: -0.4s !important;
|
||||||
|
animation-delay: -0.4s !important; }
|
||||||
|
.line-scale-pulse-out > div:nth-child(1), .line-scale-pulse-out > div:nth-child(5) {
|
||||||
|
-webkit-animation-delay: -0.2s !important;
|
||||||
|
animation-delay: -0.2s !important; }
|
||||||
|
|
||||||
@import '~react-grid-layout/css/styles.css';
|
@import '~react-grid-layout/css/styles.css';
|
||||||
@import '~react-resizable/css/styles.css';
|
@import '~react-resizable/css/styles.css';
|
||||||
|
|||||||
@ -127,7 +127,6 @@ or
|
|||||||
cnpm run start
|
cnpm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## How to run the downloaded code ?
|
## How to run the downloaded code ?
|
||||||
|
|
||||||
1. The compression package can be unzipped directly to the server root, and access to the root address is sufficient
|
1. The compression package can be unzipped directly to the server root, and access to the root address is sufficient
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user