mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-10-27 00:21:26 +08:00
首页课程hover动画优化
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
@keyframes scaleMarginTop {
|
||||
@keyframes scaleTransTop {
|
||||
0% {
|
||||
margin-top: 0;
|
||||
transform: translateY(0px);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
100% {
|
||||
margin-top: -5px;
|
||||
transform: translateY(-5px);
|
||||
}
|
||||
}
|
||||
.item {
|
||||
@@ -20,7 +24,7 @@
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
box-shadow: 0px 4px 16px 8px rgba(0, 0, 0, 0.04);
|
||||
animation: scaleMarginTop 0.5s;
|
||||
animation: scaleTransTop 0.3s;
|
||||
}
|
||||
.top-content {
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user