CSS3点击图片切换焦点图展示特效

CSS3点击图片切换焦点图展示特效

一款纯CSS3实现的点击图片切换下一张焦点图展示特效,鼠标悬停时显示图片标题和页码。

CSS样式

1
<link rel="stylesheet" href="css/style.css">

JS文件

1
<script src="/demos/googlegg.js"></script>

HTML结构

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="carousel">
    <input type="checkbox" class="faux-ui-facia">
    <div class="slide" slide="5" annot="This is the fifth slide title.">
        <img src="img/3361b5e1.jpg" alt="Slide 5">
    </div>
    <input type="checkbox" class="faux-ui-facia">
    <div class="slide" slide="4" annot="This is the fourth slide title.">
        <img src="img/photo-1415356838286-df6fd593e8b3.jpg" alt="Slide 4">
    </div>
    <input type="checkbox" class="faux-ui-facia">
    <div class="slide" slide="3" annot="This is the third slide title.">
        <img src="img/JaI1BywIT5Or8Jfmci1E_zakopane.jpg" alt="Slide 3">
    </div>
    <input type="checkbox" class="faux-ui-facia">
    <div class="slide" slide="2" annot="This is the second slide title.">
        <img src="img/6108b580.jpg" alt="Slide 2">
    </div>
    <input type="checkbox" class="faux-ui-facia">
    <div class="slide" slide="1" annot="First slide title.">
        <img src="img/2c0343f7.jpg" alt="Slide 1">
    </div>
    <div class="counter" count="5"> / 5</div>
</div>
当前内容只有登录了才能查看,如果您已经注册,请登录
2

发表评论