mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 19:16:11 +00:00
created animation for the title
This commit is contained in:
@@ -32,6 +32,8 @@
|
|||||||
.heading-primary {
|
.heading-primary {
|
||||||
color: #ffff;
|
color: #ffff;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
|
backface-visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-primary-main {
|
.heading-primary-main {
|
||||||
@@ -39,6 +41,8 @@
|
|||||||
font-size: 60px;
|
font-size: 60px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
letter-spacing: 35px;
|
letter-spacing: 35px;
|
||||||
|
|
||||||
|
animation: moveInLeft 1s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading-primary-sub {
|
.heading-primary-sub {
|
||||||
@@ -46,4 +50,38 @@
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: 17.4px;
|
letter-spacing: 17.4px;
|
||||||
|
|
||||||
|
animation: moveInRight 1s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes moveInLeft {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateX(-100px);
|
||||||
|
}
|
||||||
|
|
||||||
|
80% {
|
||||||
|
transform: translateX(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translate(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes moveInRight {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateX(100px);
|
||||||
|
}
|
||||||
|
|
||||||
|
80% {
|
||||||
|
transform: translateX(-10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translate(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user