Skip to content

Commit

Permalink
Issue #178 Animation effect added (#185)
Browse files Browse the repository at this point in the history
Co-authored-by: piyushjindal <[email protected]>
  • Loading branch information
jindaliiita and piyushjindal authored Apr 6, 2023
1 parent 1d05315 commit f135a79
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions blocks/hero-home/hero-home.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ main .hero-home > div > div > h1 {
height: auto;
box-sizing: border-box;
line-height: 40px;
animation: moveUp 1s ease-in-out;
}
@media (min-width: 900px) {
main .hero-home > div > div > h1 {
Expand Down
1 change: 1 addition & 0 deletions blocks/hero-home/hero-home.less
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ main {
height: auto;
box-sizing: border-box;
line-height: @font-lineheight-h2;
animation: moveUp 1s ease-in-out;
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,19 @@ hr {
border: 0;
border-bottom: 1px solid var(--overlay-background-color);
}
@keyframes moveUp {
from {
transform: translateY(30%);
}
to {
transform: translateY(0);
opacity: 1;
}
}
main .home-banner.section {
padding: 24px 10px 0 10px;
animation: moveUp 2s ease-in-out 0.5s forwards;
opacity: 0;
}
main .home-banner.section .default-content-wrapper {
background-color: #fafafa;
Expand Down
12 changes: 12 additions & 0 deletions styles/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,20 @@ hr {
border-bottom: 1px solid var(--overlay-background-color);
}

@keyframes moveUp {
from {
transform: translateY(30%);
}
to {
transform: translateY(0);
opacity: 1;
}
}

main .home-banner.section {
padding: 24px 10px 0 10px;
animation: moveUp 2s ease-in-out 0.5s forwards;
opacity: 0;

.default-content-wrapper {
background-color: @dotcoza-color-neutrals-grey-background;
Expand Down

0 comments on commit f135a79

Please sign in to comment.