html5 css3懸停圖片分割放大特效



111 442 148



特效描述:html5 css3懸停圖片 分割放大特效,html5基于css3屬性制作網格圖片懸停放大分割展示動畫特效。

代碼結構

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/base.css" />
<link rel="stylesheet" type="text/css" href="css/base.css" />

2. 引入JS

<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/demo.js"></script>
<script src="js/imagesloaded.pkgd.min.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/demo.js"></script>

3. HTML代碼

<!DOCTYPE html>
<html lang="en" class="no-js">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Grid Layout with Motion Hover Effect</title>
		<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
	</head>
	<body class="loading">
		<svg class="hidden">
			<symbol id="icon-arrow" viewBox="0 0 24 24">
				<title>arrow</title>
				<polygon points="6.3,12.8 20.9,12.8 20.9,11.2 6.3,11.2 10.2,7.2 9,6 3.1,12 9,18 10.2,16.8 "/>
			</symbol>
			<symbol id="icon-drop" viewBox="0 0 24 24">
				<title>drop</title>
				<path d="M12,21c-3.6,0-6.6-3-6.6-6.6C5.4,11,10.8,4,11.4,3.2C11.6,3.1,11.8,3,12,3s0.4,0.1,0.6,0.3c0.6,0.8,6.1,7.8,6.1,11.2C18.6,18.1,15.6,21,12,21zM12,4.8c-1.8,2.4-5.2,7.4-5.2,9.6c0,2.9,2.3,5.2,5.2,5.2s5.2-2.3,5.2-5.2C17.2,12.2,13.8,7.3,12,4.8z"/><path d="M12,18.2c-0.4,0-0.7-0.3-0.7-0.7s0.3-0.7,0.7-0.7c1.3,0,2.4-1.1,2.4-2.4c0-0.4,0.3-0.7,0.7-0.7c0.4,0,0.7,0.3,0.7,0.7C15.8,16.5,14.1,18.2,12,18.2z"/>
			</symbol>
			<svg id="icon-github" viewBox="0 0 33 33">
				<title>github</title>
				<path d="M16.608.455C7.614.455.32 7.748.32 16.745c0 7.197 4.667 13.302 11.14 15.456.815.15 1.112-.353 1.112-.785 0-.386-.014-1.411-.022-2.77-4.531.984-5.487-2.184-5.487-2.184-.741-1.882-1.809-2.383-1.809-2.383-1.479-1.01.112-.99.112-.99 1.635.115 2.495 1.679 2.495 1.679 1.453 2.489 3.813 1.77 4.741 1.353.148-1.052.569-1.77 1.034-2.177-3.617-.411-7.42-1.809-7.42-8.051 0-1.778.635-3.233 1.677-4.371-.168-.412-.727-2.069.16-4.311 0 0 1.367-.438 4.479 1.67a15.602 15.602 0 0 1 4.078-.549 15.62 15.62 0 0 1 4.078.549c3.11-2.108 4.475-1.67 4.475-1.67.889 2.242.33 3.899.163 4.311C26.37 12.66 27 14.115 27 15.893c0 6.258-3.809 7.635-7.437 8.038.584.503 1.105 1.497 1.105 3.017 0 2.177-.02 3.934-.02 4.468 0 .436.294.943 1.12.784 6.468-2.159 11.131-8.26 11.131-15.455 0-8.997-7.294-16.29-16.291-16.29"></path>
			</svg>
			<symbol id="icon-cross" viewBox="0 0 24 23">
				<title>cross</title>
				<path d="M23.865 3.677c.197-.383.164-.818-.008-1.18.048-.41-.06-.827-.448-1.147L22.323.457c-.636-.524-1.632-.689-2.25 0a155.348 155.348 0 0 1-8.797 9.001C9.011 7.342 6.72 5.255 4.443 3.165c-.8-.734-1.956-.503-2.458.37C1.253 3.9.659 4.374.168 5.182c-.233.386-.215.872 0 1.258 1.47 2.635 4.31 4.951 6.646 7.083-.313.28-.623.562-.942.836-3.146 2.702-5.268 4.416-1.331 7.187.053.037.107.029.161.05.076.036.148.06.232.074.026 0 .05.005.075.003.082.007.16.027.243.011 2.117-.415 4.085-2.074 5.872-3.9 1.74 1.715 3.592 3.353 5.63 4.325.485.232 1.063.097 1.436-.227.626.047 1.197-.342 1.484-.901.042-.026.07-.041.116-.07.91-.569.993-1.701.32-2.482-1.522-1.762-3.138-3.438-4.787-5.084 2.968-2.9 6.674-6.027 8.542-9.667z"/>
			</symbol>
		</svg>
		<main>
			<div class="content">
				<div class="grid">
					<a class="grid__item" href="#preview-1">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/1.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Memo">Memo</span></h3>
							<h4 class="box__text"><span class="box__text-inner">Beast</span></h4>
							<div class="box__deco">&#10014;</div>
							<p class="box__content">"Sometimes we go surfing when it's stormy weather"</p>
						</div>
					</a>
					<a class="grid__item" href="#preview-2">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/2.jpg" alt="Some image"/>
							<h3 class="box__title box__title--straight box__title--bottom"><span class="box__title-inner" data-hover="Gun">Gun</span></h3>
							<h4 class="box__text box__text--bottom"><span class="box__text-inner box__text-inner--rotated1">Rain</span></h4>
							<div class="box__deco box__deco--top">&#10115;</div>
						</div>
					</a>
					<a class="grid__item" href="#preview-3">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/3.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="West">West</span></h3>
							<h4 class="box__text box__text--topcloser"><span class="box__text-inner">Green</span></h4>
							<div class="box__deco">&#10032;</div>
						</div>
					</a>
					<a class="grid__item grid__item--noclick" href="#">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="pater/monday.png" alt="Some image"/>
							<h4 class="box__text"><span class="box__text-inner box__text-inner--rotated2 box__text-inner--reverse">Sponsor</span></h4>
							<p class="box__content"><strong>monday.com</strong> offers simplified planning and collaboration tools. Create customizable boards to track everything your team is working on and keep all communication in one place and never lose track again. <strong>Create your free account</strong></p>
						</div>
					</a>
					<a class="grid__item" href="#preview-4">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/5.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Catch">Catch</span></h3>
							<h4 class="box__text box__text--bottom box__text--right"><span class="box__text-inner box__text-inner--rotated3">Fire</span></h4>
						</div>
					</a>
					<a class="grid__item" href="#preview-5">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/6.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Lim">Lim</span></h3>
							<h4 class="box__text box__text--bottomcloser"><span class="box__text-inner">Breed</span></h4>
						</div>
					</a>
					<a class="grid__item" href="#preview-6">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/7.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Hard">Hard</span></h3>
							<h4 class="box__text"><span class="box__text-inner">Fast</span></h4>
							<p class="box__content">"Love stronger, stranger! Love stronger."</p>
						</div>
					</a>
					<a class="grid__item" href="#preview-7">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/8.jpg" alt="Some image"/>
							<h3 class="box__title box__title--straight box__title--bottom"><span class="box__title-inner" data-hover="Red">Red</span></h3>
							<h4 class="box__text box__title--bottom"><span class="box__text-inner box__text-inner--rotated1">Life</span></h4>
						</div>
					</a>
					<a class="grid__item" href="#preview-8">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/4.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Jack">Jack</span></h3>
							<h4 class="box__text box__text--bottom"><span class="box__text-inner">Bust</span></h4>
							<div class="box__deco">&#10108;</div>
						</div>
					</a>
					<a class="grid__item" href="#preview-9">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/10.jpg" alt="Some image"/>
							<h3 class="box__title"><span class="box__title-inner" data-hover="Wild">Wild</span></h3>
							<h4 class="box__text box__text--bottom"><span class="box__text-inner">Zack</span></h4>
						</div>
					</a>
					<a class="grid__item" href="#preview-10">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/11.jpg" alt="Some image"/>
							<h3 class="box__title box__title--bottom"><span class="box__title-inner" data-hover="Lost">Lost</span></h3>
							<h4 class="box__text"><span class="box__text-inner box__text-inner--rotated2">Rust</span></h4>
							<p class="box__content">"Call it a hurricane or call it freedom, Frank"</p>
						</div>
					</a>
					<a class="grid__item" href="#preview-11">
						<div class="box">
							<div class="box__shadow"></div>
							<img class="box__img" src="img/12.jpg" alt="Some image"/>
							<h3 class="box__title box__title--straight box__title--left"><span class="box__title-inner" data-hover="Grit">Grit</span></h3>
							<h4 class="box__text box__text--bottom box__text--right"><span class="box__text-inner box__text-inner--rotated3">Mud</span></h4>
							<div class="box__deco box__deco--top">&#10153;</div>
						</div>
					</a>
				</div>
			</div>
			<div class="overlay">
				<div class="overlay__reveal"></div>
				<div class="overlay__item" id="preview-1">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/1.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Memo</span></h3>
						<h4 class="box__text"><span class="box__text-inner">Beast</span></h4>
						<div class="box__deco">&#10014;</div>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-2">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/2.jpg" alt="Some image"/>
						<h3 class="box__title box__title--straight box__title--bottom"><span class="box__title-inner">Gun</span></h3>
						<h4 class="box__text box__text--bottom"><span class="box__text-inner box__text-inner--rotated1">Rain</span></h4>
						<div class="box__deco box__deco--top">&#10115;</div>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-3">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/3.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">West</span></h3>
						<h4 class="box__text box__text--topcloser"><span class="box__text-inner">Green</span></h4>
						<div class="box__deco">&#10032;</div>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-4">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/5.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Catch</span></h3>
						<h4 class="box__text box__text--bottom box__text--right"><span class="box__text-inner box__text-inner--rotated3">Fire</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-5">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/6.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Lim</span></h3>
						<h4 class="box__text box__text--bottomcloser"><span class="box__text-inner">Breed</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-6">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/7.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Hard</span></h3>
						<h4 class="box__text"><span class="box__text-inner">Fast</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-7">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/8.jpg" alt="Some image"/>
						<h3 class="box__title box__title--straight box__title--bottom"><span class="box__title-inner">Red</span></h3>
						<h4 class="box__text box__title--bottom"><span class="box__text-inner box__text-inner--rotated1">Life</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-8">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/9.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Jack</span></h3>
						<h4 class="box__text box__text--bottom"><span class="box__text-inner">Bust</span></h4>
						<div class="box__deco">&#10108;</div>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-9">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/10.jpg" alt="Some image"/>
						<h3 class="box__title"><span class="box__title-inner">Wild</span></h3>
						<h4 class="box__text box__text--bottom"><span class="box__text-inner">Zack</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-10">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/11.jpg" alt="Some image"/>
						<h3 class="box__title box__title--bottom"><span class="box__title-inner">Lost</span></h3>
						<h4 class="box__text"><span class="box__text-inner box__text-inner--rotated2">Rust</span></h4>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<div class="overlay__item" id="preview-11">
					<div class="box">
						<div class="box__shadow"></div>
						<img class="box__img box__img--original" src="img/original/12.jpg" alt="Some image"/>
						<h3 class="box__title box__title--straight box__title--left"><span class="box__title-inner">Grit</span></h3>
						<h4 class="box__text box__text--bottom box__text--right"><span class="box__text-inner box__text-inner--rotated3">Mud</span></h4>
						<div class="box__deco box__deco--top">&#10153;</div>
					</div>
					<p class="overlay__content">It's time the tale were told of how you took a child and you made him old.</p>
				</div>
				<button class="overlay__close"><svg class="icon icon--cross"><use xlink:href="#icon-cross"></use></svg></button>
			</div>
		</main>
	</body>
</html>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: 文字疊加 文字層疊 滑動 滑塊 滑動門 觸屏滑動 滑動插件 滑塊插件 文字提示框 提示文字 文字收縮展開 文字收縮 文字展開 文字放大縮小 文字縮放 文字大小 文字放大 文字縮小 文字變大 文字變小 文字翻轉 文字旋轉 加載動畫 文字淡出淡進 文字淡出 文字淡進 文字全屏 文字延遲加載 文字延遲 文字加載 文字拖動 文字拖拽 滾動切換 滾動條切換 滑動選項卡 滑動切換 360全景 360度全景 h5文字動畫 h5文字邊框動畫 html5文字動畫 html5文字邊框動畫 文字滑動 文字滑塊 文字滾動 文字無縫滾動 文字間歇滾動 文字切換 文字選項卡 浮動 懸浮 懸浮層 懸浮框 浮動層 浮動框 浮動插件 懸浮插件 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 滑動星星打分 浮動提示框 h5彈窗動畫 html5彈窗動畫 圖片文字 文字導航菜單 文字導航 文字菜單 h5動畫 h5背景動畫 h5場景動畫 h53D動畫 h5界面動畫 html5動畫 文字 文字插件 其他 h5按鈕動畫 html5按鈕動畫 圖片廣告 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 彩色文字 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 鼠標滑過 鼠標懸停 跟隨鼠標移動
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

湖北30选5开奖结果走势图表