feat: update transition styles for ProjectEntry to look better
This commit is contained in:
@@ -63,22 +63,21 @@
|
|||||||
text-wrap: pretty;
|
text-wrap: pretty;
|
||||||
text-wrap: balance;
|
text-wrap: balance;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
transition: box-shadow ease-in-out 0.1s, transform ease-in-out 0.3s 0s;
|
transition: box-shadow ease-in-out 0s;
|
||||||
will-change: rotate;
|
|
||||||
|
|
||||||
perspective: 1000px;
|
perspective: 1000px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
transition: box-shadow ease-in-out 0.1s, transform ease-in-out 0.3s 0.5s;
|
transition: box-shadow ease-in-out 0.1s 0.4s;
|
||||||
|
|
||||||
transform: translateY(-0.5rem);
|
|
||||||
box-shadow: var(--color-card-box-shadow);
|
box-shadow: var(--color-card-box-shadow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 768px) {
|
||||||
:global(article.in-view) {
|
:global(article.in-view) {
|
||||||
animation: shake 0.4s ease-in-out;
|
animation: shake 0.4s ease-in-out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes shake {
|
@keyframes shake {
|
||||||
0%, 100% {
|
0%, 100% {
|
||||||
|
|||||||
Reference in New Issue
Block a user