用户注册



邮箱:

密码:

用户登录


邮箱:

密码:
记住登录一个月忘记密码?

发表随想


还能输入:200字
云代码 - php代码库

jQuery图片动画遮罩层lightbox特效

2017-05-03 作者: 云代码会员举报

[php]代码库

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>jQuery图片动画遮罩层lightbox特效</title>

<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/zzsc.css">
<link rel="stylesheet" href="css/magnific-popup.min.css" />
<link rel="stylesheet" href="css/style.css">

</head>
<body><script src="/demos/googlegg.js"></script>
<div class="zzsc-container">
	<div class='container'>
	  <div class='row'>
		<div class='col-xs-12'>
		  <h1 class='text-center'>
			Overlay CSS
		  </h1>
		  <div class='padding-top-20px'></div>
		</div>
	  </div>
	</div>
	<div class='container'>
	  <div class='row'>
		<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 magnificPopup__Box'>
		  <a data-effect='mfp-zoom-in' href='img/1.jpg'>
			<div class='box-1'>
			  <img class='img-responsive' src='img/thumb_1.jpg'>
			  <div class='lupa text-center'>
				<i class='fa fa-search-plus'></i>
			  </div>
			</div>
		  </a>
		</div>
		<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 magnificPopup__Box'>
		  <a data-effect='mfp-3d-flip' href='img/2.jpg'>
			<div class='box-2'>
			  <img class='img-responsive' src="img/thumb_2.jpg">
			  <div class='lupa text-center'>
				<i class='fa fa-search-plus'></i>
			  </div>
			</div>
		  </a>
		</div>
		<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 magnificPopup__Box'>
		  <a data-effect='mfp-horizontal-in-out' href='img/3.jpg'>
			<div class='box-3'>
			  <img class='img-responsive' src='img/thumb_3.jpg'>
			  <div class='lupa text-center'>
				<i class='fa fa-search-plus'></i>
			  </div>
			</div>
		  </a>
		</div>
		<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 magnificPopup__Box'>
		  <a data-effect='mfp-vertical-topIn-bottomOut' href='img/4.jpg'>
			<div class='box-4'>
			  <img class='img-responsive' src='img/thumb_4.jpg'>
			  <div class='lupa text-center'>
				<i class='fa fa-search-plus'></i>
			  </div>
			</div>
		  </a>
		</div>
	  </div>
	</div>
</div>

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.magnific-popup.js"></script>
<script type="text/javascript">
	if (/iP(hone|od|ad)/.test(navigator.platform)) {
		$('*').css({
			"cursor": "pointer"
		});
	}
	$('.preloader').delay(3500).fadeOut(600);
	$(document).ready(function () {
		$('.magnificPopup__Box').magnificPopup({
			delegate: 'a',
			type: 'image',
			removalDelay: 300,
			callbacks: {
				beforeOpen: function () {
					this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure magnificPopup__Animus');
					this.st.mainClass = this.st.el.attr('data-effect');
				}
			},
			closeOnContentClick: true,
			midClick: true
		})
	});
</script>

<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
<p>来源:<a href="http://www.lanrenzhijia.com/" target="_blank">懒人素材</a></p>
</div>
</body>
</html>

[代码运行效果截图]


jQuery图片动画遮罩层lightbox特效

[源代码打包下载]




网友评论    (发表评论)

共1 条评论 1/1页

发表评论:

评论须知:

  • 1、评论每次加2分,每天上限为30;
  • 2、请文明用语,共同创建干净的技术交流环境;
  • 3、若被发现提交非法信息,评论将会被删除,并且给予扣分处理,严重者给予封号处理;
  • 4、请勿发布广告信息或其他无关评论,否则将会删除评论并扣分,严重者给予封号处理。


扫码下载

加载中,请稍后...

输入口令后可复制整站源码

加载中,请稍后...