超级酷jQuery动画滑动插件特效代码

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

以下是 超级酷jQuery动画滑动插件特效代码 的示例演示效果:

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

部分效果截图:

超级酷jQuery动画滑动插件特效代码

HTML代码(index.html):

<!doctype html>
<html lang="">
<head>
<meta charset="gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>超级酷jQuery动画滑动插件</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/pogo-slider.css">

</head>
<body>

<div class="container">
	<h2 class="sectionHeading">Full Width Demo</h2>
	<div class="pogoSlider" id="js-main-slider">
		<div class="pogoSlider-slide" data-transition="slideOverLeft" data-duration="1000"  style="background-image:url(img/slide1.jpg);"></div>
		<div class="pogoSlider-slide " data-transition="fold" data-duration="1000"  style="background-image:url(img/slide2.jpg);"></div>
		<div class="pogoSlider-slide " data-transition="shrinkReveal" data-duration="1000"  style="background-image:url(img/slide3.jpg);"></div>

	</div><!-- .pogoSlider -->
	<div class="demos" id="demos">
		<div class="slideDemos clearfix">
			<div class="grid12 small12">
				<h2 class="sectionHeading">Slide Transition Demos</h2>

			</div>

			<div class="row fl">

				<div class="grid12 small3 slideDemos-single">
			
					<div class="pogoSlider" id="demo1">
						
						<div class="pogoSlider-slide" style="background-color: indigo;">
							<h3 class="pogoSlider-slide-element">slide</h3>
						</div>
						<div class="pogoSlider-slide" style="background-color: dimgray;">
							<h3 class="pogoSlider-slide-element">slide</h3>
						</div>
						<div class="pogoSlider-slide" style="background-color: coral">
							<h3 class="pogoSlider-slide-element">slide</h3>
						</div>

					</div>

				</div>

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider " id="demo2">
						
						<div class="pogoSlider-slide" data-transition="blocksReveal" style="background-color: magenta;">
							<h3 class="pogoSlider-slide-element">blocksReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="blocksReveal" style="background-color: teal;">
							<h3 class="pogoSlider-slide-element">blocksReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="blocksReveal" style="background-color: plum">
							<h3 class="pogoSlider-slide-element">blocksReveal</h3>
						</div>

					</div>
					
				</div>

				<div class="grid12 small3 slideDemos-single">
			
					<div class="pogoSlider" id="demo3">
						
						<div class="pogoSlider-slide" data-transition="verticalSplitReveal" style="background-color: sandybrown;">
							<h3 class="pogoSlider-slide-element">verticalSplitReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="verticalSplitReveal" style="background-color: forestgreen;">
							<h3 class="pogoSlider-slide-element">verticalSplitReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="verticalSplitReveal" style="background-color: midnightblue">
							<h3 class="pogoSlider-slide-element">verticalSplitReveal</h3>
						</div>

					</div>

				</div>

				<div class="grid12 small3 slideDemos-single">
			
					<div class="pogoSlider" id="demo4">
						
						<div class="pogoSlider-slide" data-transition="zipReveal" style="background-color: darkturquoise;">
							<h3 class="pogoSlider-slide-element">zipReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="zipReveal" style="background-color: lightgrey;">
							<h3 class="pogoSlider-slide-element">zipReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="zipReveal" style="background-color: darkred">
							<h3 class="pogoSlider-slide-element">zipReveal</h3>
						</div>

					</div>
					
				</div>

			</div><!-- .row -->

			<div class="row fl">

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider" id="demo5">
						
						<div class="pogoSlider-slide" data-transition="shrinkReveal" style="background-color: rosybrown;">
							<h3 class="pogoSlider-slide-element">shrinkReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="shrinkReveal" style="background-color: orchid;">
							<h3 class="pogoSlider-slide-element">shrinkReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="shrinkReveal" style="background-color: royalblue">
							<h3 class="pogoSlider-slide-element">shrinkReveal</h3>
						</div>

					</div>

				</div>

				<div class="grid12 small3 slideDemos-single" id="demo2">
					
					<div class="pogoSlider" id="demo6">
						
						<div class="pogoSlider-slide" data-transition="expandReveal" style="background-color: limegreen;">
							<h3 class="pogoSlider-slide-element">expandReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="expandReveal" style="background-color: lightsteelblue;">
							<h3 class="pogoSlider-slide-element">expandReveal</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="expandReveal" style="background-color: aquamarine">
							<h3 class="pogoSlider-slide-element">expandReveal</h3>
						</div>

					</div>
					
				</div>

				<div class="grid12 small3 slideDemos-single">
			
					<div class="pogoSlider" id="demo7">
						
						<div class="pogoSlider-slide" data-transition="fold" style="background-color: darkolivegreen;">
							<h3 class="pogoSlider-slide-element">fold</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="fold" style="background-color: orange;">
							<h3 class="pogoSlider-slide-element">fold</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="fold" style="background-color: palevioletred">
							<h3 class="pogoSlider-slide-element">fold</h3>
						</div>

					</div>

				</div>

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider" id="demo8">
						
						<div class="pogoSlider-slide" data-transition="verticalSlide" style="background-color: darkslateblue;">
							<h3 class="pogoSlider-slide-element">verticalSlide</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="verticalSlide" style="background-color: cyan;">
							<h3 class="pogoSlider-slide-element">verticalSlide</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="verticalSlide" style="background-color: indianred">
							<h3 class="pogoSlider-slide-element">verticalSlide</h3>
						</div>

					</div>
					
				</div>

			</div><!-- .row -->

			<div class="row fl">

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider" id="demo9">
						
						<div class="pogoSlider-slide" data-transition="fade" style="background-color: skyblue;">
							<h3 class="pogoSlider-slide-element">fade</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="fade" style="background-color: black;">
							<h3 class="pogoSlider-slide-element">fade</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="fade" style="background-color: gainsboro">
							<h3 class="pogoSlider-slide-element">fade</h3>
						</div>

					</div>
					
				</div>

				<div class="grid12 small3 slideDemos-single">
		
					<div class="pogoSlider" id="demo10">
						
						<div class="pogoSlider-slide" data-transition="slideRevealLeft" style="background-color: LightPink;">
							<h3 class="pogoSlider-slide-element">Slide Reveal Left</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="slideRevealLeft" style="background-color: SlateBlue;">
							<h3 class="pogoSlider-slide-element">Slide Reveal Left</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="slideRevealLeft" style="background-color: DimGrey">
							<h3 class="pogoSlider-slide-element">Slide Reveal Left</h3>
						</div>

					</div>
					
				</div>

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider" id="demo11">
						
						<div class="pogoSlider-slide" data-transition="slideOverLeft" style="background-color: HotPink;">
							<h3 class="pogoSlider-slide-element">Slide Over Left</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="slideOverLeft" style="background-color: Brown;">
							<h3 class="pogoSlider-slide-element">Slide Over Left</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="slideOverLeft" style="background-color: Indigo">
							<h3 class="pogoSlider-slide-element">Slide Over Left</h3>
						</div>

					</div>
					
				</div>

				<div class="grid12 small3 slideDemos-single">
					
					<div class="pogoSlider" id="demo12">
						
						<div class="pogoSlider-slide" data-transition="barRevealDown" style="background-color: PaleGreen;">
							<h3 class="pogoSlider-slide-element">Bars Reveal Down</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="barRevealDown" style="background-color: MediumVioletRed;">
							<h3 class="pogoSlider-slide-element">Bars Reveal Down</h3>
						</div>
						<div class="pogoSlider-slide" data-transition="barRevealDown" style="background-color: SpringGreen">
							<h3 class="pogoSlider-slide-element">Bars Reveal Down</h3>
						</div>

					</div>
					
				</div>

			</div><!-- row -->

		</div><!-- slideDemos -->

	</div><!-- demos -->

</div><!-- .container -->

<script src="js/vendor/jquery-1.11.1.min.js"></script>
<script src="js/jquery.pogo-slider.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>





JS代码(main.js):

$(document).ready(function (){
	$('#js-main-slider').pogoSlider({
	autoplay:true,autoplayTimeout:5000,displayProgess:true,preserveTargetSize:true,targetWidth:1000,targetHeight:300,responsive:true}
).data('plugin_pogoSlider');
	var transitionDemoOpts ={
	displayProgess:false,generateNav:false,generateButtons:false}
$('#demo1').pogoSlider(transitionDemoOpts);
	$('#demo2').pogoSlider(transitionDemoOpts);
	$('#demo3').pogoSlider(transitionDemoOpts);
	$('#demo4').pogoSlider(transitionDemoOpts);
	$('#demo5').pogoSlider(transitionDemoOpts);
	$('#demo6').pogoSlider(transitionDemoOpts);
	$('#demo7').pogoSlider(transitionDemoOpts);
	$('#demo8').pogoSlider(transitionDemoOpts);
	$('#demo9').pogoSlider(transitionDemoOpts);
	$('#demo10').pogoSlider(transitionDemoOpts);
	$('#demo11').pogoSlider(transitionDemoOpts);
	$('#demo12').pogoSlider(transitionDemoOpts);
}
);
	

CSS代码(main.css):

*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}
body{background:#f9f9fc;-webkit-font-smoothing:antialiased;letter-spacing:.1px;line-height:1.23em;color:#757575;}
.container{width:1000px;margin:115px auto;border:1px solid #eaeaea;border-radius:5px;min-height:500px;background:#fff;padding:2em 0;}
.sectionHeading{display:block;line-height:1em;text-align:center;font-weight:600;color:#212121;}
.sectionHeading span{background:#fff;padding:0 20px;display:inline-block;}
.clearfix:before,.clearfix:after{content:" ";display:table;}
.clearfix:after{clear:both;}
.clearfix{*zoom:1;}
.fl{float:left;}
.row{width:100%;}
.grid12{float:left;padding-left:0.5em;padding-right:0.5em;}
.small12{width:100%;}
.small3{width:25%;}
.slideDemos{width:100%;}
.slideDemos-single{-webkit-border-radius:3px;border-radius:3px;margin-top:1em;}
.slideDemos-single .pogoSlider{height:225px;}
.slideDemos-single h3{text-align:center;margin-top:90px;color:#fff;font-weight:700;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
1.13 MB
Html Js 图片切换触摸3
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章