Skip to content

Commit a180ac5

Browse files
updated video hover animation
1 parent 4d749b4 commit a180ac5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/projects/VideoProject.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,9 @@
168168
transform: translateX(calc(-50% - 10px)) translateY(-50%)
169169
translateZ(-50px) rotateY(-3deg);
170170
}
171+
172+
.image-container:hover .frontfacing-vid,
173+
.image-container:hover .background-img {
174+
transform: translate(-50%, -50%);
175+
}
171176
</style>

0 commit comments

Comments
 (0)