Skip to content

Commit

Permalink
fix: home header camera zoom effect
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaniq committed Feb 17, 2024
1 parent 44e3bbb commit 1f7eaca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/app/app.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ dialog {

--lineWidth: 5px;
--lineLength: 140px;
--lineLength: calc(100px + 2vh);
--lineColor: whitesmoke;
--linearGradientColor: linear-gradient(var(--lineColor), var(--lineColor));
--lineColorPair: var(--linearGradientColor), var(--linearGradientColor);
Expand Down Expand Up @@ -103,7 +104,7 @@ dialog {
top: 0;
right: 0;

color: whitesmoke;
color: rgba(245, 245, 245, 0.5);
font-size: 60px;

animation: rec 3s infinite forwards step-end;
Expand Down
20 changes: 14 additions & 6 deletions src/app/features/home-brand/home-brand.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,23 @@
gap: 10px;
flex-direction: column;
width: calc(100vh - 80%);
filter: blur(3px);

animation: zoom ease-in-out 5s infinite;
padding: 40px;

img.studio {
padding: 10px 0;
border-top: 5px solid whitesmoke;
}

animation: zoom ease-in-out 5s;
animation-direction: alternate;
animation-timing-function: both;
}

@keyframes zoom {
0% {
filter: none;
filter: blur(10px);
transform: scale3d(1.02, 1.02, 1);
}

33% {
Expand All @@ -34,14 +41,15 @@
50% {
filter: blur(1px);
transform: scale(1.02);
transform: scale3d(1.02, 1.02, 1);
}

33% {
66% {
transform: scale(1.01);
}

100% {
filter: blur(3px);
transform: scale(1);
filter: none;
transform: none;
}
}
1 change: 0 additions & 1 deletion src/app/features/home-brand/home-brand.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
class="mk"
src="assets/brand/mk.svg"
/>

<img
class="studio"
src="assets/brand/studio.svg"
Expand Down

0 comments on commit 1f7eaca

Please sign in to comment.