From 7dac1d44c7b13184e4a1cbdb4113df2bb8db9d7e Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 14 Apr 2019 22:56:14 +0800 Subject: refactor: replace sass with postcss --- src/components/Loading.module.css | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/components/Loading.module.css (limited to 'src/components/Loading.module.css') diff --git a/src/components/Loading.module.css b/src/components/Loading.module.css new file mode 100644 index 0000000..11d3297 --- /dev/null +++ b/src/components/Loading.module.css @@ -0,0 +1,29 @@ + +.loading { + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +.pulse { + --color1: #dddddd; + --size: 40px; + width: var(--size); + height: var(--size); + margin: 10px; + background-color: var(--color1); + border-radius: 100%; + animation: pulseScaleOut 1s infinite ease-in-out; +} + +@keyframes pulseScaleOut { + 0% { + transform: scale(0); + } + 100% { + transform: scale(1); + opacity: 0; + } +} -- cgit v1.3.1