初始页面刷新浏览器时有文字退出效果,但是我希望初始时没有效果
<div class="center_div"> <img src="img/bg.jpg" width="280" height="380"/> <div class="center_div_p"> <p>我们一起向快乐出发</p> <p>憧憬,自由</p> </div> </div>
*{padding: 0px; margin: 0px;} .center_div{width:280px; height: 380px; position: relative; margin: auto;overflow: hidden; } .center_div .center_div_p{ position: absolute; top:0px; left:0px; } .center_div .center_div_p p{ transition: transform 0.5s;color: #fff; width:150px;line-height: 25px;transform: translate(-150px,0px); } .center_div:hover .center_div_p p{transform: translate(0px,0px);} .center_div .center_div_p p:nth-of-type(1){transition-delay: 0.5s;} .center_div .center_div_p p:nth-of-type(2){transition-delay: 1s;}
麻烦老师帮我看看,如何达到初始时是没有动画,只有鼠标移动到图片上时才有动画?