Skip to content

Commit

Permalink
Merge pull request #135 from nightven/animation-for-fonds
Browse files Browse the repository at this point in the history
Amimation for fonds
  • Loading branch information
nightven authored Sep 7, 2023
2 parents f690d74 + dcb7491 commit a7f8ca7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/fonds/fonds.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="fonds__common">
<div class="fonds__common scale-up-center">
<div class="common__title">
<h2 class="support__Ukraine">Support Ukraine</h2>
<svg class="trident">
Expand Down
27 changes: 27 additions & 0 deletions src/sass/_fonds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,34 @@
max-width: 356px;
}
}
.scale-up-center {
-webkit-animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

@-webkit-keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}

@keyframes scale-up-center {
0% {
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
-webkit-transform: scale(1);
transform: scale(1);
}
}
.support__Ukraine {
color: #fff;
font-family: DM Sans;
Expand Down

0 comments on commit a7f8ca7

Please sign in to comment.