aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/animations
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:31:11 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:31:11 +0800
commit12b6877aeb0a6bcddab4193b62cd10347b8c328b (patch)
tree84066b8c74bf790a5d073de86014e727b7275db9 /packages/instant/src/components/animations
parent4b348e1e603ec45e1e4bf39533b4b204423cafa0 (diff)
downloaddexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.gz
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.bz2
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.lz
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.xz
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.tar.zst
dexon-sol-tools-12b6877aeb0a6bcddab4193b62cd10347b8c328b.zip
Pulsating holder element showing, even if amount is empty
Diffstat (limited to 'packages/instant/src/components/animations')
-rw-r--r--packages/instant/src/components/animations/pulse.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/instant/src/components/animations/pulse.tsx b/packages/instant/src/components/animations/pulse.tsx
new file mode 100644
index 000000000..01d6ea070
--- /dev/null
+++ b/packages/instant/src/components/animations/pulse.tsx
@@ -0,0 +1,15 @@
+import { keyframes, styled } from '../../style/theme';
+
+const pulsingKeyframes = keyframes`
+ 0%, 100% {
+ opacity: 0.2;
+ }
+ 50% {
+ opacity: 100;
+ }
+`;
+export const Pulse = styled.div`
+ animation-name: ${pulsingKeyframes}
+ animation-duration: 2s;
+ animation-iteration-count: infinite;
+`;