This repository has been archived by the owner on Nov 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
586aa83
commit 3cd3aa5
Showing
17 changed files
with
354 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
registry=https://registry.npm.taobao.org/ | ||
registry=https://registry.npmjs.org/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,126 +1,133 @@ | ||
$color: #c2f5d3; | ||
$color: #00adb5; | ||
$inColor: #f9c094; | ||
|
||
.load-block { | ||
width: 45px; | ||
height: 45px; | ||
display: flex; | ||
justify-content: space-between; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
animation: rotate 8s infinite ease-in-out; | ||
.item1 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor1 2s infinite ease-in-out; | ||
} | ||
.item2 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor2 2s infinite ease-in-out; | ||
} | ||
.item3 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor3 2s infinite ease-in-out; | ||
} | ||
.item4 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor4 2s infinite ease-in-out; | ||
.load-container-block { | ||
position: relative; | ||
width: 150px; | ||
height: 150px; | ||
margin: 0 auto; | ||
.load-block { | ||
margin: auto; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
width: 45px; | ||
height: 45px; | ||
display: flex; | ||
justify-content: space-between; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
animation: rotate 8s infinite ease-in-out; | ||
.item1 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor1 2s infinite ease-in-out; | ||
} | ||
.item2 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor2 2s infinite ease-in-out; | ||
} | ||
.item3 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor3 2s infinite ease-in-out; | ||
} | ||
.item4 { | ||
width: 20px; | ||
height: 20px; | ||
animation: changeColor4 2s infinite ease-in-out; | ||
} | ||
} | ||
} | ||
|
||
@keyframes rotate { | ||
0% { | ||
transform:rotate(0deg); | ||
transform: rotate(0deg); | ||
} | ||
25% { | ||
transform:rotate(90deg); | ||
transform: rotate(90deg); | ||
} | ||
50% { | ||
transform:rotate(180deg); | ||
transform: rotate(180deg); | ||
} | ||
75% { | ||
transform:rotate(270deg); | ||
transform: rotate(270deg); | ||
} | ||
100% { | ||
transform:rotate(360deg); | ||
transform: rotate(360deg); | ||
} | ||
} | ||
|
||
|
||
@keyframes changeColor1{ | ||
@keyframes changeColor1 { | ||
0% { | ||
background:$inColor; | ||
background: $inColor; | ||
} | ||
25% { | ||
background:$color | ||
background: $color; | ||
} | ||
50% { | ||
background:$color | ||
background: $color; | ||
} | ||
75% { | ||
background:$color | ||
background: $color; | ||
} | ||
100% { | ||
background:$inColor; | ||
background: $inColor; | ||
} | ||
} | ||
|
||
|
||
@keyframes changeColor2{ | ||
@keyframes changeColor2 { | ||
0% { | ||
background:$color | ||
background: $color; | ||
} | ||
25% { | ||
background:$inColor; | ||
background: $inColor; | ||
} | ||
50% { | ||
background:$color | ||
background: $color; | ||
} | ||
75% { | ||
background:$color | ||
background: $color; | ||
} | ||
100% { | ||
background:$color | ||
background: $color; | ||
} | ||
} | ||
|
||
|
||
@keyframes changeColor3{ | ||
@keyframes changeColor3 { | ||
0% { | ||
background:$color | ||
background: $color; | ||
} | ||
25% { | ||
background:$color | ||
background: $color; | ||
} | ||
50% { | ||
background:$inColor; | ||
background: $inColor; | ||
} | ||
75% { | ||
background:$color | ||
background: $color; | ||
} | ||
100% { | ||
background:$color | ||
background: $color; | ||
} | ||
} | ||
|
||
|
||
@keyframes changeColor4{ | ||
@keyframes changeColor4 { | ||
0% { | ||
background:$color | ||
background: $color; | ||
} | ||
25% { | ||
background:$color | ||
background: $color; | ||
} | ||
50% { | ||
background:$color | ||
background: $color; | ||
} | ||
75% { | ||
background:$inColor; | ||
background: $inColor; | ||
} | ||
100% { | ||
background:$color | ||
background: $color; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import { CommonLoading } from '~/components'; | ||
import Container from './compoment/DemoContainer'; | ||
storiesOf('Demo', module) | ||
.addDecorator(withKnobs) | ||
.add('Demo', () => { | ||
return ( | ||
<Container> | ||
|
||
</Container> | ||
); | ||
}); |
Oops, something went wrong.