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
5610c17
commit 438084b
Showing
7 changed files
with
11,266 additions
and
3 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
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,15 @@ | ||
import React from 'react'; | ||
import styles from './style.scss'; | ||
const CircleToBlockLoading = ({ style }) => { | ||
return ( | ||
<div className="load-container-block" style={style}> | ||
<div className="circleToBlock"> | ||
<div className="circleToBlock-item"></div> | ||
<div className="circleToBlock-item"></div> | ||
<div className="circleToBlock-item"></div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CircleToBlockLoading; |
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,45 @@ | ||
.circleToBlock { | ||
height: 100px; | ||
width: 100px; | ||
margin: auto; | ||
position: absolute; | ||
left: 0; | ||
right: 0; | ||
top: 0; | ||
bottom: 0; | ||
display: flex; | ||
justify-content: space-between; | ||
flex-wrap: nowrap; | ||
align-items: center; | ||
.circleToBlock-item { | ||
height: 20px; | ||
width: 20px; | ||
background-color: #00adb5; | ||
position: absolute; | ||
margin: auto; | ||
border-radius: 2px; | ||
transform: translateY(0) rotate(45deg) scale(0); | ||
animation: changeSharp 3s linear infinite; | ||
} | ||
.circleToBlock-item:nth-of-type(1) { | ||
animation-delay: calc(3s * 2 / -1.5); | ||
} | ||
.circleToBlock-item:nth-of-type(2) { | ||
animation-delay: calc(3s * 3 / -1.5); | ||
} | ||
.circleToBlock-item:nth-of-type(3) { | ||
animation-delay: calc(3s * 4 / -1.5); | ||
} | ||
} | ||
|
||
@keyframes changeSharp { | ||
0% { | ||
transform: translateX(0) rotate(45deg) scale(0); | ||
} | ||
50% { | ||
transform: translateX(250%) rotate(45deg) scale(1); | ||
} | ||
100% { | ||
transform: translateX(500%) rotate(45deg) scale(0); | ||
} | ||
} |
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,8 +1,8 @@ | ||
// export { default as BoxLoading } from './BoxLoading'; | ||
export { default as CommonLoading } from './CommonLoading'; | ||
export { default as WaveLoading } from './WaveLoading'; | ||
export { default as CircleLoading } from './CircleLoading'; | ||
export { default as LoopCircleLoading } from './LoopCircleLoading'; | ||
export { default as TransverseLoading } from './TransverseLoading'; | ||
export { default as BlockLoading } from './BlockLoading'; | ||
export { default as BoxLoading } from './BoxLoading' | ||
export { default as CircleToBlockLoading } from './CircleToBlockLoading' |
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,17 @@ | ||
import React from 'react'; | ||
import { storiesOf } from '@storybook/react'; | ||
import { withKnobs } from '@storybook/addon-knobs'; | ||
import { CircleToBlockLoading } from '~/components'; | ||
import Container from './compoment/Container'; | ||
storiesOf('CircleToBlock', module) | ||
.addDecorator(withKnobs) | ||
.add( | ||
'CircleToBlock', | ||
() => { | ||
return ( | ||
<Container> | ||
<CircleToBlockLoading></CircleToBlockLoading> | ||
</Container> | ||
); | ||
} | ||
); |
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
Oops, something went wrong.