css - 冻结动画css上的状态位置
问题描述
我想hover
保存.pole-main .pole-gatherings .img:hover
元素的图像位置。
animation
用css效果冻结它
什么时候hover
出去我想把它动画回来
如提供的.pole-main .pole-gatherings .img:hover
解决方案
将动画从关键帧更改为过渡:
.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);
}
推荐阅读
- avaloniaui - 为什么在面板之间移动控件会导致延迟渲染出现异常?
- python - Kivy TextInput 位于 Android 键盘上方,但屏幕其余部分保持原位
- android - Android OpenGL ES,形状未显示在设备上,但在模拟器上工作正常?
- php - PayPal PHP SDK - 如何通过 PayPal 传递自定义变量?
- windows - 如何使用 Powershell 检查操作系统架构(32 位或 64 位)?
- moodle - 由于没有此类活动,因此无法在 Moodle 中创建考勤
- java - 使用tomcat9 + Memcache时,会话之间的HttpSession对象变为空
- spring - DatastoreException:给定的键没有字符串名称值,但尝试转换为字符串
- sql - 当 dblink 失败时,使用 UNION 的视图无法返回查询的第一部分的结果
- python - 用于 systemd 服务的 Python ImportError