基于jQuery悬停弹出遮罩显示按钮代码

今天给大家分享一款基于jQuery悬停弹出遮罩显示按钮代码。这是是一款当鼠标悬停在图片上后,会出现一系列的按钮,文字等弹性动画效果。效果图如下:

基于jQuery悬停弹出遮罩显示按钮代码

在线预览   源码下载

实现的代码。

html代码:

 <div id="container">
<div class="main_box user_style1" data-hipop="one">
<img src="data:images/1.jpg">
<a href="#" class="popup"></a>
</div>
<div class="main_box user_style2" data-hipop="two">
<img src="data:images/2.jpg">
<a href="#" class="popup"></a><a href="#" class="popup2"></a>
</div>
<div class="main_box user_style3" data-hipop="one-horizontal">
<img src="data:images/3.jpg">
<a href="#" class="popup">BUY</a>
</div>
<div class="main_box user_style4" data-hipop="two-horizontal">
<img src="data:images/4.jpg">
<a href="#" class="popup"></a><a href="#" class="popup2"></a>
</div>
<div class="main_box user_style5" data-hipop="text_content">
<img src="data:images/5.jpg" title alt="Img preview">
<p class="textTitle">
Title Here
</p>
<p class="textBox">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel mauris orci,
nec lobortis sem. Ut urna dui, vehicula vel gravida non, egestas nec eros. Vivamus
euismod, erat quis lobortis ullamcorper, libero justo hendrerit velit, in ornare
erat ipsum scelerisque nisl. Etiam pharetra sodales dui, nec dignissim nisi adipiscing
vel. Integer luctus mi elementum mi ullamcorper eu varius enim rutrum. Morbi gravida
dolor eu leo dictum vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Aliquam vel mauris orci, nec lobortis sem. Ut urna dui, vehicula vel gravida
non, egestas nec eros. <a href="#">Read More</a>
</p>
</div>
<div class="main_box user_style6" data-hipop="text_content">
<img src="data:images/6.jpg" title alt="Img preview">
<p class="textTitle">
Title Here
</p>
<p class="textBox">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel mauris orci,
nec lobortis sem. Ut urna dui, vehicula vel gravida non, egestas nec eros. Vivamus
euismod, erat quis lobortis ullamcorper, libero justo hendrerit velit, in ornare
erat ipsum scelerisque nisl. <a href="#">Link</a>
</p>
</div>
<div class="main_box user_style11" data-hipop="text_content2">
<img src="data:images/11.jpg" title alt="Img preview">
<p class="textTitle">
$7
</p>
<p class="textBox">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut nec est viverra velit
venenatis faucibus. Maecenas adipiscing, lectus a hendrerit vulputate, tellus urna
accumsan felis, semper tempor mauris massa in odio. Duis sit amet nunc eu sem sagittis
malesuada. <a href="#">Link</a>
</p>
</div>
<div class="main_box user_style12" data-hipop="one-horizontal">
<img src="data:images/12.jpg">
<a href="#" class="popup">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut
nec est viverra velit venenatis faucibus. Maecenas adipiscing, lectus a hendrerit
vulputate, tellus urna accumsan felis, semper tempor mauris massa in odio. Duis
sit amet nunc eu sem sagittis malesuada. </a>
</div>
<div class="main_box user_style13" data-hipop="one">
<img src="data:images/13.jpg">
<a href="#" class="popup"></a>
</div>
<div class="main_box user_style7" data-hipop="text_content2">
<img src="data:images/7.jpg" title alt="Img preview">
<p class="textTitle">
Title Here
</p>
<p class="textBox">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vel mauris orci,
nec lobortis sem. Ut urna dui, vehicula vel gravida non, egestas nec eros. <a href="#">
Link</a>
</p>
</div>
<div class="main_box user_style8" data-hipop="rub">
<img src="data:images/8.jpg">
<a href="#" class="r_board">AWESOME</a>
</div>
<div class="main_box user_style9" data-hipop="rub">
<img src="data:images/9.jpg">
<a href="#" class="r_board"></a>
</div>
<div class="main_box user_style10" data-hipop="rub">
<img src="data:images/10.jpg">
<a href="#" class="r_board">$7</a>
</div>
</div>

via:http://www.w2bc.com/Article/28674

上一篇:微信公共平台开发-(.net实现)4--发送图文消息


下一篇:CSS 相对/绝对(relative/absolute)定位与jQuery的控制显示隐藏