我在我的项目中有div“transition”\“hover”有问题: Comverese。“悬停”不能正常工作
在“成功故事”部分。当你将鼠标悬停在div上时,它就会上去,但当你在该div中移动鼠标时不会保持不动。
什么问题?
.story1{
position: absolute;
width: 22rem;
height: 12rem;
z-index: 9;
background: white;
padding: 1rem;
-webkit-transition:transform .6s ease-out;
-moz-transition:transform .6s ease-out;
-ms-transition:transform .6s ease-out;
-o-transition:transform .6s ease-out;
transition:transform .6s ease-out;
}
.story1:hover{
-webkit-transform:translate(0px,-200px);
-moz-transform:translate(0px,-200px);
-ms-transform:translate(0px,-200px);
-o-transform:translate(0px,-200px);
transform:translate(0px,-200px);
}
给一些gode。你如何实现它? – pbaris
我现在添加我使用的类。你可以在Chrome控制台看到。 – Moran