cyl/dev
jscyl13849007907 1 year ago
parent bf9758043c
commit 72dd89752f

@ -6,7 +6,10 @@
v-for="(item,index) in list" :key="index" v-for="(item,index) in list" :key="index"
@mouseenter="handleEnter(item,index)" @mouseenter="handleEnter(item,index)"
@mouseleave="handleLeave(item,index)" @mouseleave="handleLeave(item,index)"
:class="index == active ? 'item-active' : ''" :class="{
'item-active': index == active,
'item-zoom': index != active && active > -1
}"
> >
<div class="item-logo g_flex_none"> <div class="item-logo g_flex_none">
<img src="../../../../static/img/gyl.jpg" class="img" /> <img src="../../../../static/img/gyl.jpg" class="img" />
@ -103,11 +106,13 @@
} }
.item-active{ .item-active{
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
transform: scale(1.01);
.mock{ .mock{
backdrop-filter: blur(3px); backdrop-filter: blur(3px);
} }
} }
.item-zoom{
transform: scale(1.01);
}
} }
} }
</style> </style>
Loading…
Cancel
Save