HTML5全屏手风琴内容切换特效代码下载



9 35 12



特效描述:全屏手风琴 内容切换,HTML5全屏手风琴内容切换特效代码下载

代码结构

1. 引入CSS

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700i" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700i" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />

2. 引入JS

<script src="js/anime.min.js"></script>
<script src="js/enquire.min.js"></script>
<script src="js/tabsnav.js"></script>
<script src="js/demo1.js"></script>
<script src="js/anime.min.js"></script>
<script src="js/enquire.min.js"></script>
<script src="js/tabsnav.js"></script>
<script src="js/demo1.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></title>
<script>document.documentElement.className = 'js';</script>
</head>
<body class="demo-1">
<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>
	<symbol id="icon-caret" viewBox="0 0 24 24">
		<title>caret</title>
		<polygon points="15.7,16.6 11.1,12 15.7,7.4 14.3,6 8.3,12 14.3,18">
	</symbol>
	<symbol id="icon-menu" viewBox="0 0 24 24">
		<title>menu</title>
		<path d="M23.8,6H0.1V3h23.7V6z M23.8,10.5H0.1v3h23.7V10.5z M14.2,18h-14v3h14V18z">
	</symbol>
	<symbol id="icon-cross" viewBox="0 0 24 24">
		<title>cross</title>
		<path d="M14.1,12l7.3,7.3l-2.1,2.1L12,14.1l-7.3,7.3l-2.1-2.1L9.9,12L2.6,4.7l2.1-2.1L12,9.9l7.3-7.3l2.1,2.1L14.1,12z">
	</symbol>
</svg>
<main class="view">
	<div class="content">
		<div class="deco">
			<p class="deco__text">elementum recolligo huic commodo locus mihi vestri vox</p>
		</div>
		<header class="codrops-header">
			<p class="codrops-header__info">telekinetic franchise<br/>hot water<br/>cryptography<br/>pants dance</p>
			<span class="codrops-header__deco">hitherto</span>
			<h1 class="codrops-header__title">wild</h1>
			<p class="codrops-header__tagline">expanding bar menus</p>
			<nav class="demos">
				<span class="demos__text">cors tuum magicus urn, aeternus canum fidelis, lapis et caro per sempre, nunquam intervalum</span>
				<a class="demo demo--current" href="index.html">1</a>
				<a class="demo" href="index2.html">2</a>
				<a class="demo" href="index3.html">3</a>
			</nav>
		</header>
	</div>
	<button class="btn btn--menu">
		<svg class="icon icon--menu"><use xlink:href="#icon-menu"></use></svg>
		<svg class="icon icon--cross"><use xlink:href="#icon-cross"></use></svg>
	</button>
	<nav class="tabsnav tabsnav--vertical tabsnav--ander">
		<div class="tabsnav__item">
			<div class="tabsnav__bar"></div>
			<h3 class="tabsnav__title">Serendipity</h3>
		</div>
		<div class="tabsnav__item">
			<div class="tabsnav__bar"></div>
			<h3 class="tabsnav__title">Telekinesis</h3>
		</div>
		<div class="tabsnav__item">
			<div class="tabsnav__bar"></div>
			<h3 class="tabsnav__title">Footalicious</h3>
		</div>
	</nav>
	<div class="tabscontent">
		<div class="tabscontent__item">
			<figure class="poster">
				<img class="poster__img" src="img/img1.jpg" alt="Poster 1">
				<figcaption class="poster__caption">
					<h2 class="poster__title">wild<br/>corn</h2>
					<p class="poster__deco">nothing lost</p>
					<div class="poster__box"></div>
					<span class="poster__number">01</span>
				</figcaption>
			</figure>
		</div>
		<div class="tabscontent__item">
			<figure class="poster">
				<img class="poster__img" src="img/img1.jpg" alt="Poster 1">
				<figcaption class="poster__caption">
					<h2 class="poster__title">blue<br/>gun</h2>
					<p class="poster__deco">fingerpaint</p>
					<div class="poster__box"></div>
					<span class="poster__number">02</span>
				</figcaption>
			</figure>
		</div>
		<div class="tabscontent__item">
			<figure class="poster">
				<img class="poster__img" src="img/img1.jpg" alt="Poster 1">
				<figcaption class="poster__caption">
					<h2 class="poster__title">home<br/>maze</h2>
					<p class="poster__deco">binary sun</p>
					<div class="poster__box"></div>
					<span class="poster__number">03</span>
				</figcaption>
			</figure>
		</div>
		<button class="btn btn--back"><svg class="icon icon--caret"><use xlink:href="#icon-caret"></use></svg></button>
	</div>
</main>
</body>
</html>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 导航切换 图片全屏 文字全屏 图片切换 360全景 文字切换 背景切换 手风琴 选项卡自动切换 视频切换 列表切换 渐隐切换 全屏切换 切换按钮 缩放切换 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 全屏焦点图 全屏切换 宽屏全屏满屏

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

加群请备注:从官网了解到