我想在hover
上保存.pole-main .pole-gatherings .img:hover
元素的图像位置。
冻结它与animation
css效果
当hover
出来时,我想把它动画化回
如.pole-main .pole-gatherings .img:hover
中所述
https://jsfiddle.net/kb2grhL5/
将动画从关键帧更改为过渡:
.pole-main .pole-gatherings .img{
width: 283px;
height: 102px;
background-color: blue;
transition: transform .7s;
transform-origin: 0% 0%;
transition-timing-function: ease-out;
}
.pole-main .pole-gatherings .img:hover{
transform: perspective(300px) rotateY(-5deg);
}