我想知道是否可以对我的“评论”元素应用某种效果,使它们随机地一个接一个地出现在黑色容器内。这些“评论”还会在容器内随机出现。
这是一种更加高级的Jquery show/hide效果吗?
我已经设置了一个JSFiddle。
.review{
background-color:black;
width:100%;
height:500px;
}
#comment1{
position:relative;
top:50%;
width:20px;
height:20px;
background-color:#ffffff;
}
<div class="review">
<div id="comment1"></div>
<div id="comment2"></div>
<div id="comment3"></div>
<div id="comment4"></div>
<div id="comment5"></div>
</div>