mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-29 05:53:07 +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 {
|
.item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 186px;
|
height: 186px;
|
||||||
@ -21,10 +8,12 @@
|
|||||||
padding: 24px;
|
padding: 24px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
transition: all 0.3s;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
box-shadow: 0px 4px 16px 8px rgba(0, 0, 0, 0.04);
|
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 {
|
.top-content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user