之上,我有以下设置:悬停:移动DIV起来,在同级
<div class="" style="height: 400px !important;
width: 100% !important;
overflow: hidden;">
<div class="" style="height: 400px !important;
width: 100% !important;
background-color: red;">
</div>
<div class="" style="height: 400px !important;
width: 100% !important;
background-color: blue;">
</div>
</div>
所以这是一个div,它有一定的高度。里面有两个高度相同的div,这意味着他们的身高一起是他们的集装箱格子的两倍。溢出隐藏,所以只显示第一个div。
我现在想等待用户悬停,然后动画并移动第二个div,以便第二个div现在隐藏第一个div。没有了,我想恢复整个事情。
我该如何做这样的事情,我在正确的轨道上?
嗨乔治,你已经试过的代码是什么? – ProgrammerV5