Add spinner element
This commit is contained in:
parent
e98ea6eb87
commit
f9ec31fd7a
12
src/styles/Spinner.css
Normal file
12
src/styles/Spinner.css
Normal file
@ -0,0 +1,12 @@
|
||||
@keyframes rotation {
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
.spinner {
|
||||
animation: rotation 2s linear infinite;
|
||||
}
|
8
src/styles/Spinner.js
Normal file
8
src/styles/Spinner.js
Normal file
@ -0,0 +1,8 @@
|
||||
import React from 'react'
|
||||
import { FiLoader } from 'react-icons/fi'
|
||||
|
||||
import styles from './Spinner.css'
|
||||
|
||||
export const Spinner = () => {
|
||||
return <FiLoader className={styles.spinner} />
|
||||
}
|
Loading…
Reference in New Issue
Block a user