jQuery Revealing图片展示效果特效代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery Revealing图片展示效果特效代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery Revealing图片展示效果特效代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,图片特效,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为Revealing图片展示效果(jQuery),属于站长常用代码" />
<title>Revealing图片展示效果(jQuery</title>
<link rel="stylesheet" type="text/css" href="css/lrtk.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/photorevealer.js"></script>
</head>

<body>
<!-- 代码开始 -->
<div id="page-wrap">		
	<table><tr>
		<td><div class="photo_slider">
			<img src="images/mthood.jpg"/>
			<div class="info_area">
				<h3><a href="#">Climbing Mt. Hood</a></h3>
			</div>
		</div></td>
		
		<td><div class="photo_slider">
			<img src="images/baloon.jpg"/>
			<div class="info_area">
				<h3>Climbing Mt. Hood</h3>
			</div>
		</div></td>
		
		<td><div class="photo_slider">
			<img src="images/lighthouse.jpg"/>
			<div class="info_area">
				<h3>Lighthouse Rays</h3>
			</div>
		</div></td>
		<td><div class="photo_slider">
			<img src="images/giraffe.jpg"/>
			<div class="info_area">
				<h3>Pucker up!</h3>
			</div>
		</div></td>
	</tr></table>			
</div>
<!-- 代码结束 -->
</body>
</html>







JS代码(photorevealer.js):

$(document).ready(function(){
	$('.photo_slider').each(function(){
	var $this = $(this).addClass('photo-area');
	var $img = $this.find('img');
	var $info = $this.find('.info_area');
	var opts ={
}
;
	$img.load(function(){
	opts.imgw = $img.width();
	opts.imgh = $img.height();
}
);
	opts.orgw = $this.width();
	opts.orgh = $this.height();
	$img.css ({
	marginLeft:"-150px",marginTop:"-150px"}
);
	var $wrap = $('<div class="photo_slider_img">').append($img).prependTo($this);
	var $open = $('<a href="#" class="more_info">More Info &gt;
	</a>').appendTo($this);
	var $close = $('<a class="close">Close</a>').appendTo($info);
	opts.wrapw = $wrap.width();
	opts.wraph = $wrap.height();
	$open.click(function(){
	$this.animate({
	width:opts.imgw,height:(opts.imgh+30),borderWidth:"10"}
,600 );
	$open.fadeOut();
	$wrap.animate({
	width:opts.imgw,height:opts.imgh}
,600 );
	$(".info_area",$this).fadeIn();
	$img.animate({
	marginTop:"0px",marginLeft:"0px"}
,600 );
	return false;
}
);
	$close.click(function(){
	$this.animate({
	width:opts.orgw,height:opts.orgh,borderWidth:"1"}
,600 );
	$open.fadeIn();
	$wrap.animate({
	width:opts.wrapw,height:opts.wraph}
,600 );
	$img.animate({
	marginTop:"-150px",marginLeft:"-150px"}
,600 );
	$(".info_area",$this).fadeOut();
	return false;
}
);
}
);
}
);
	

CSS代码(lrtk.css):

*{margin:0;padding:0}
a img{border:none}
h1{color:black;font-size:3.0em}
h3{font:normal 16px/30px Verdana;margin-bottom:5px}
.clear{clear:both}
#page-wrap{margin:20px;padding:10px}
#page-wrap table{margin:0 auto}
a.close{position:absolute;right:10px;bottom:10px;display:block;width:20px;height:21px;background:url(../images/close_button.jpg);text-indent:-9999px;cursor:pointer}
.photo_slider_img{width:100px;height:100px;margin-bottom:5px;overflow:hidden}
td{vertical-align:top}
.photo_slider{position:relative;width:100px;height:130px;padding:10px;border:1px solid black;overflow:hidden;margin:25px 10px 10px 10px;background:white;float:left}
.info_area{display:none}
.more_info{display:block;width:89px;height:26px;background:url(../images/moreinfo.jpg) no-repeat;text-indent:-9999px;cursor:pointer}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
382.90 KB
Html JS 图片特效5
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章