首页课程hover动画优化

This commit is contained in:
禺狨 2023-03-28 10:24:11 +08:00
parent 6d990f137e
commit 6fb6beb727

View File

@ -1,16 +1,3 @@
@keyframes scaleTransTop {
0% {
transform: translateY(0px);
}
50% {
transform: translateY(-2px);
}
100% {
transform: translateY(-5px);
}
}
.item {
width: 100%;
height: 186px;
@ -21,10 +8,12 @@
padding: 24px;
display: flex;
flex-direction: column;
transition: all 0.3s;
cursor: pointer;
&:hover {
box-shadow: 0px 4px 16px 8px rgba(0, 0, 0, 0.04);
animation: scaleTransTop 0.3s;
transition: all 0.3s;
transform: translateY(-5px);
}
.top-content {
width: 100%;