From 177ec52f38649746d7d2dde538c3bf2227845a24 Mon Sep 17 00:00:00 2001 From: Yusuf Ipek Date: Fri, 30 Apr 2021 09:29:01 +0300 Subject: [PATCH] added animation to header button --- src/commons/header/header.css | 18 +++++++++++++ src/commons/header/header.js | 2 +- src/components/button/button.css | 43 ++++++++++++++++++++++++++++++++ src/components/button/button.jsx | 9 ++++++- 4 files changed, 70 insertions(+), 2 deletions(-) diff --git a/src/commons/header/header.css b/src/commons/header/header.css index 193b412..acb9fee 100644 --- a/src/commons/header/header.css +++ b/src/commons/header/header.css @@ -56,6 +56,12 @@ animation: moveInRight 1s ease-out; } +#header-button { + animation: moveInBottom 1s ease-out; + animation-delay: 2s; + opacity: 0; +} + @keyframes moveInLeft { 0% { opacity: 0; @@ -87,3 +93,15 @@ transform: translate(0); } } + +@keyframes moveInBottom { + 0% { + opacity: 0; + transform: translateY(100px); + } + + 100% { + opacity: 1; + transform: translate(0); + } +} diff --git a/src/commons/header/header.js b/src/commons/header/header.js index b8e96fd..b9f1f64 100644 --- a/src/commons/header/header.js +++ b/src/commons/header/header.js @@ -13,7 +13,7 @@ function Header() { Outdoors is where life happens -