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