Html:
<DivClass= "Edt_title"><DivId= "Edt_title"><PClass= "Edt_title_top">e Fixed Investment</P><DivClass= "Product_Line"></Div><PClass= "Edt_title_c">Multiple deadlines<Br/><Br/>Robust revenue</P><PClass= "Edt_title_top"Style= "margin-top:60px;">e Fixed Investment</P><DivClass= "Product_Line"></Div><PClass= "Edt_title_c">Multiple deadlines<br /><br /> robust yield </p> << Span style= "COLOR: #800000" >div class= "Product_more" Span style= "COLOR: #0000ff" >> See all </div> </ div> </div>
Css:
. Edt_title { height: 200px; width: 150px; margin: 200px auto; text-align: Center; Overflow:hidden; /* */}#edt_title{ position: relative; /**/}
Js
$ ("#edt_title"). MouseOver (function () { $ (this). Stop (). Animate ({bottom: ' 200px '},800); }); $ ("#edt_title"). Mouseout (function () { $ (this). Stop (). Animate ({bottom: ' 0px '},800); });
The Stop () event is used to prevent the animation from running continuously.
Div mouse hover, child element move up, mouse move out, sub-element move animation.