From 850ea18250512f882dde76f426929d0a692ceb46 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Thu, 24 Jan 2019 18:44:43 +0100 Subject: [PATCH] add slide left/right animations --- src/config/animations.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/config/animations.js b/src/config/animations.js index c7fee813..29144b1c 100644 --- a/src/config/animations.js +++ b/src/config/animations.js @@ -80,4 +80,22 @@ export const SLIDE_DOWN = keyframes` 100% { transform: translateY(0%); } +`; + +export const SLIDE_RIGHT = keyframes` + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(0%); + } +`; + +export const SLIDE_LEFT = keyframes` + 0% { + transform: translateX(0%); + } + 100% { + transform: translateX(-100%); + } `; \ No newline at end of file