Add spinner element

This commit is contained in:
Alfred Melch 2019-12-28 12:21:00 +01:00
parent e98ea6eb87
commit f9ec31fd7a
2 changed files with 20 additions and 0 deletions

12
src/styles/Spinner.css Normal file
View 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
View 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} />
}