mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 19:16:11 +00:00
added animation to header button
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ function Header() {
|
||||
<span className="heading-primary-main">Outdoors</span>
|
||||
<span className="heading-primary-sub">is where life happens</span>
|
||||
</h1>
|
||||
<Button text={"Discover our tours"} />
|
||||
<Button animationName={"move-in-bottom"} text={"Discover our tours"} />
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user