html5 css3 bootstrap響應式幻燈片帶進度條的圖片切換效果代碼



114 454 152



特效描述:html5 css3 bootstrap 響應式幻燈片 帶進度條 圖片切換效果,jquery+css3帶倒計時的全屏幻燈片插件Bootslider.js

代碼結構

1. 引入CSS

<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<link href="css/animate.css" rel="stylesheet" type="text/css" />
<link href="css/bootslider.css" rel="stylesheet" type="text/css" />
<link href="css/bs-theme-metro.css" rel="stylesheet" type="text/css" />

2. 引入JS

<script src="js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/touchSwipe.js" type="text/javascript"></script>
<script src="js/mousewheel.js" type="text/javascript"></script>
<script src="js/fitvids.js" type="text/javascript"></script>
<script src="js/bootslider.js" type="text/javascript"></script>

3. HTML代碼

<div class="bootslider" id="bootslider">
	<!-- Bootslider Loader -->
	<div class="bs-loader">
		<img src="img/loader.gif" width="31" height="31" alt="Loading.." id="loader"/>
	</div>
	<!-- /Bootslider Loader -->
	<!-- Bootslider Container -->
	<div class="bs-container">
		<!-- Bootslider Slide -->
		<div class="bs-slide active" data-animate-in="tada" data-animate-out="bounceOutDown">
			<div class="bs-foreground">
				<div class="text-center heading-center">
					<h1 class="heading" data-animate-in="foolishIn" data-animate-out="bounceOutDown" data-delay="800">simply stunning<span class="text-alizarin">.</span></h1>
				</div>
				<div class="text-center logo" data-animate-in="fadeInUp">
					<i class="fa fa-3x fa-twitter text-white hidden-xs"></i>
					<h4>
						<span class="text-alizarin">boot</span><span class="text-white">slider</span>
					</h4>
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-1.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
		<!-- Bootslider Slide -->
		<div class="bs-slide" data-animate-in="bounceInDown" data-animate-out="flipOutX">
			<div class="bs-foreground">
				<div class="text-center heading-center">
					<h1 class="heading" data-animate-in="twisterInDown" data-animate-out="bounceOutDown" data-delay="800">it's showtime<span class="text-alizarin">.</span></h1>
				</div>
				<div class="text-center logo" data-animate-in="fadeInUp">
					<i class="fa fa-3x fa-twitter text-white hidden-xs"></i>
					<h4>
						<span class="text-alizarin">boot</span><span class="text-white">slider</span>
					</h4>
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-2.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
		<!-- Bootslider Slide -->
		<div class="bs-slide" data-animate-in="flipInX" data-animate-out="rotateRight">
			<div class="bs-foreground">
				<div class="text-center heading-center">
					<h1 class="heading" data-animate-in="swap" data-animate-out="bounceOutDown" data-delay="800">pure eye candy<span class="text-alizarin">.</span></h1>
				</div>
				<div class="text-center logo" data-animate-in="fadeInUp">
					<i class="fa fa-3x fa-twitter text-white hidden-xs"></i>
					<h4>
						<span class="text-alizarin">boot</span><span class="text-white">slider</span>
					</h4>
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-3.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
		<!-- Bootslider Slide -->
		<div class="bs-slide" data-animate-in="rotateIn" data-animate-out="holeOut">
			<div class="bs-foreground">
				<div class="text-center heading-center">
					<h1 class="heading" data-animate-in="fadeInDown" data-animate-out="bounceOutDown" data-delay="800">bootslider<span class="text-alizarin">.</span></h1>
					<h3 class="text-white hidden-xs" data-animate-in="fadeInUp" data-animate-out="bounceOutDown" data-delay="800">your favorite</h3>
				</div>
				<div class="text-center logo" data-animate-in="fadeIn"> 
					<i class="fa fa-3x fa-twitter text-white hidden-xs"></i>
					<h4>
						<span class="text-alizarin">boot</span><span class="text-white">slider</span>
					</h4>
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-6.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
		<!-- Bootslider Slide -->
		<div class="bs-slide" data-animate-in="openUpRightReturn" data-animate-out="slideDown">
			<div class="bs-foreground">
				<div class="container">
					<div class="row">
						<div class="col-md-offset-3 col-md-6 col-xs-offset-3 col-xs-6 text-center">
							<br/><br/><br/>
							<div class="bs-video" data-animate-in="twisterInUp" data-delay="800" data-animate-out="fadeOut"> 
								<iframe src="//player.vimeo.com/video/6857186" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
							</div>
						</div>
					</div>
				</div>
				<div class="text-center logo"  data-animate-in="fadeInUp">
					<i class="fa fa-3x fa-twitter text-white hidden-xs"></i>
					<h4>
						<span class="text-alizarin">boot</span><span class="text-white">slider</span>
					</h4>
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-4.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
		<!-- Bootslider Slide -->
		<div class="bs-slide" data-animate-in="openDownLeftReturn" data-animate-out="slideUp">
			<div class="bs-foreground">
				<div class="bs-video-fullscreen" data-animate-in="fadeIn" data-delay="800" data-animate-out="fadeOut">
					<iframe src="//player.vimeo.com/video/52283333" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> 
				</div>
			</div>
			<div class="bs-background">
				<img src="img/slide-5.jpg" alt="" />
			</div>
		</div>
		<!-- /Bootslider Slide -->
	</div>
	<!-- /Bootslider Container -->
	<!-- Bootslider Progress -->
	<div class="bs-progress progress">
		<div class="progress-bar alizarin"></div>
	</div>
	<!-- /Bootslider Progress -->
	<!-- Bootslider Thumbnails -->
	<div class="bs-thumbnails text-center text-alizarin">
		<ul class=""></ul>
	</div>
	<!-- /Bootslider Thumbnails -->
	<!-- Bootslider Pagination -->
	<div class="bs-pagination text-center text-alizarin">
		<ul class="list-inline"></ul>
	</div>
	<!-- /Bootslider Pagination -->
	<!-- Bootslider Controls -->
	<div class="text-center">
		<div class="bs-controls">
			<a href="javascript:void(0);" class="bs-prev alizarin">&lt;</a>
			<a href="javascript:void(0);" class="bs-next alizarin">&gt;</a>
		</div>
	</div>
	<!-- /Bootslider Controls -->
</div>
<br/><br/><br/>
<script>
	$(document).ready(function() {
		var slider = new bootslider('#bootslider', {
			animationIn: "fadeInUp",
			animationOut: "flipOutX",
			timeout: 5000,
			autoplay: true,
			preload: true,
			pauseOnHover: false,
			thumbnails: true,
			pagination: true,
			mousewheel: false,
			keyboard: true,
			touchscreen: true
		});
		slider.init();
	});
</script>



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


熱門標簽: flash焦點圖 flash幻燈片 flashbanner flash圖片輪播 滑動選項卡 滑動切換 滾動切換 滾動條切換 滑動手風琴 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動星星打分 全屏焦點圖 旋轉翻轉 旋轉 翻轉 全屏切換 寬屏全屏 寬屏 全屏 頁面全屏 頁面寬屏 焦點圖 幻燈片 輪播圖 bar焦點圖 其他 圖片翻轉 圖片旋轉 圖片全屏 帶縮略圖的幻燈片 圖片切換 圖片選項卡 圖標選項卡 純圖片輪播 圖片輪播 進度條 進度條插件
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

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

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

老夫子电子