jquery mouse hover content animation Toggle Effect

Source: Internet
Author: User

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>jquery Mouse hover content animation Toggle Effect </title>
<style>
*{margin:0; padding:0; list-style:none;}
img{border:0;}
a{color: #fff; text-decoration:none;}

. servicesbox {width:1000px; height:270px; margin:0 auto; clear:both; line-height:18px; color: #999999; font-size:12px;}
. Servicesbox. serbox {cursor:pointer; border:1px solid #fff; display:inline; width:198px; height:250px; float:left; over Flow:hidden; Background-color: #f7f7f7; Position:relative;}
. Servicesbox. Serboxon {font-family: "Microsoft Yahei"; display:none; width:320px; height:270px; Background:url (http:/ /demo.lanrenzhijia.com/2014/pic0910/images/serboxon_bg.gif) repeat 0px 0px; Position:absolute; left:0px; top:0px; z-index:19;}
. Servicesbox. Serbox. pic1 {width:110px; height:110px; text-align:center; position:absolute; top:22px; right:41px; z-index:99;}
. Servicesbox. Serbox. pic2 {width:110px; height:110px; text-align:center; position:absolute; top:22px; left:-110px; z-index:99;}
. Servicesbox. serbox txt1 {width:198px; height:100px; color: #999999; position:absolute; top:145px; left:0px; z-index : 99;}
. Servicesbox. Serbox. txt2 {width:198px; height:100px; color: #a9cf4f; position:absolute; top:145px; right:-240px; z-index:99;}
. Servicesbox. serbox span.tit {font-size:16px; display:block; text-align:center;}
. Servicesbox. Serbox. txt1. Tit {color: #000000; line-height:30px;}
. Servicesbox. Serbox. txt2. Tit {color: #fff; line-height:30px; font-family: "Microsoft Yahei";}
. Servicesbox. Serbox p{padding:0 10px; Text-align:center;}
</style>
<body>
<!--code Begin--
<div class= "Servicesbox" >
<div id= "Div35" class= "Serbox" onclick= "Serfocus (1)" >
<div class= "Serboxon" ></div>
<div class= "Pic1 mypng" > </div >
<div class= "Pic2 mypng" > </div >
<div class= Txt1 > <span class= > Happy net </span>
<p> Kaixin Marketing </p>
</div>
<div class= "Txt2" > <a href= "http://www.lanrenzhijia.com" target= "_blank" class= "a_jump" ><span class= " Tit "> Happy net </span>
<p> Kaixin Marketing </p>
</a> </div>
</div>
<div class= "FgH20" ></div>
<div id= "Div36" class= "Serbox" onclick= "Serfocus (2)" >
<div class= "Serboxon" ></div>
<div class= "Pic1 mypng" > </div >
<div class= "Pic2 mypng" > </div >
<div class= Txt1 > <span class= > Renren </span>
<p> Renren Marketing </p>
</div>
<div class= "Txt2" > <a href= "http://www.lanrenzhijia.com" target= "_blank" class= "a_jump" ><span class= " Tit "> Renren </span>
<p> Renren Marketing </p>
</a> </div>
</div>
<div class= "FgH20" ></div>
<div id= "Div37" class= "Serbox" onclick= "Serfocus (3)" >
<div class= "Serboxon" ></div>
<div class= "Pic1 mypng" > </div >
<div class= "Pic2 mypng" > </div >
<div class= Txt1 > <span class= >qq space </span>
&LT;P&GT;QQ Space Marketing </p>
</div>
<div class= "Txt2" > <a href= "http://www.lanrenzhijia.com" target= "_blank" class= "a_jump" ><span class= " Tit ">qq space </span>
&LT;P&GT;QQ Space Marketing </p>
</a> </div>
</div>
<div class= "FgH20" ></div>
<div id= "Div38" class= "Serbox" onclick= "Serfocus (3)" >
<div class= "Serboxon" ></div>
<div class= "Pic1 mypng" > </div >
<div class= "Pic2 mypng" > </ Div>
<div class= Txt1 > <span class= > Quiz marketing </span>
<p> Quiz Placement Lock leads </p>
</div>
<div class= "Txt2" > <a href= "http://www.lanrenzhijia.com" target= "_blank" class= "a_jump" ><span class= " Tit "> Quiz marketing </span>
<p> Quiz Placement Lock leads </p>
</a> </div>
</div>
<div class= "FgH20" ></div>
<div id= "Div39" class= "Serbox" onclick= "Serfocus (3)" >
<div class= "Serboxon" ></div>
<div class= "Pic1 mypng" > </div >
<div class= "Pic2 mypng" > </ Div>
<div class= Txt1 > <span class= > Email promotion </span>
<p> Low Cost Opportunity unlimited </p>
</div>
<div class= "Txt2" > <a href= "http://www.lanrenzhijia.com" target= "_blank" class= "a_jump" ><span class= " Tit "> Email promotion </span>
<p> Low Cost Opportunity unlimited </p>
</a> </div>
</div>
</div>
<script src= "Http://www.lanrenzhijia.com/ajaxjs/jquery.min.js" ></script>
<script>
$ (function () {
$ (". Serbox"). Hover (
function () {
$ (this). Children (). Stop (false,true);
$ (this). Children (". Serboxon"). FadeIn ("slow");
$ (this). Children (". Pic1"). Animate ({right: -110},400);
$ (this). Children (". Pic2"). Animate ({left:41},400);
$ (this). Children (". Txt1"). Animate ({left: -240},400);
$ (this). Children (". Txt2"). Animate ({right:0},400);
},
function () {
$ (this). Children (). Stop (false,true);
$ (this). Children (". Serboxon"). FadeOut ("slow");
$ (this). Children (". Pic1"). Animate ({right:41},400);
$ (this). Children (". Pic2"). Animate ({left: -110},400);
$ (this). Children (". Txt1"). Animate ({left:0},400);
$ (this). Children (". Txt2"). Animate ({right: -240},400);
}
);
});
</script>
<!--code End---
</body>

jquery mouse hover content animation Toggle Effect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.