特效描述:利用jQuery实现 滑图像动特效,利用jQuery实现滑图像动特效

代码结构

1. 引入CSS

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

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

2. HTML代码

<div class="container">
<header>
<h1>Sliding Image Panels <span>with CSS3</span></h1>
<p class="codrops-demos">
<a class="current-demo" href="index.html">Demo 1</a>
<a href="index2.html">Demo 2</a>
<a href="index3.html">Demo 3</a>
<a href="index4.html">Demo 4</a>
</p>
</header>
<section class="cr-container">
<input id="select-img-1" name="radio-set-1" type="radio" class="cr-selector-img-1" checked/>
<label for="select-img-1" class="cr-label-img-1">1</label>
<input id="select-img-2" name="radio-set-1" type="radio" class="cr-selector-img-2" />
<label for="select-img-2" class="cr-label-img-2">2</label>
<input id="select-img-3" name="radio-set-1" type="radio" class="cr-selector-img-3" />
<label for="select-img-3" class="cr-label-img-3">3</label>
<input id="select-img-4" name="radio-set-1" type="radio" class="cr-selector-img-4" />
<label for="select-img-4" class="cr-label-img-4">4</label>
<div class="clr"></div>
<div class="cr-bgimg">
<div>
<span>Slice 1 – Image 1</span>
<span>Slice 1 – Image 2</span>
<span>Slice 1 – Image 3</span>
<span>Slice 1 – Image 4</span>
</div>
<div>
<span>Slice 2 – Image 1</span>
<span>Slice 2 – Image 2</span>
<span>Slice 2 – Image 3</span>
<span>Slice 2 – Image 4</span>
</div>
<div>
<span>Slice 3 – Image 1</span>
<span>Slice 3 – Image 2</span>
<span>Slice 3 – Image 3</span>
<span>Slice 3 – Image 4</span>
</div>
<div>
<span>Slice 4 – Image 1</span>
<span>Slice 4 – Image 2</span>
<span>Slice 4 – Image 3</span>
<span>Slice 4 – Image 4</span>
</div>
</div>
<div class="cr-titles">
<h3><span>Serendipity</span><span>What you’ve been dreaming of</span></h3>
<h3><span>Adventure</span><span>Where the fun begins</span></h3>
<h3><span>Nature</span><span>Unforgettable eperiences</span></h3>
<h3><span>Serenity</span><span>When silence touches nature</span></h3>
</div>
</section>
</div>

下载地址

立即下载

1.《js焦点图轮播代码 Banner图像滑动特效》援引自互联网,旨在传递更多网络信息知识,仅代表作者本人观点,与本网站无关,侵删请联系页脚下方联系方式。

2.《js焦点图轮播代码 Banner图像滑动特效》仅供读者参考,本网站未对该内容进行证实,对其原创性、真实性、完整性、及时性不作任何保证。

3.文章转载时请保留本站内容来源地址,https://www.cxvn.com/code/focus/396.html