mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-21 20:46:03 +08:00
首页课程hover动画优化
This commit is contained in:
parent
f46078e2b1
commit
4bb82c6a8a
@ -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%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user