支持移动手机的响应式产品展示幻灯片特效
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了支持移动手机的响应式产品展示幻灯片特效相关的知识,希望对你有一定的参考价值。
Mono是一款支持移动手机的响应式产品展示js幻灯片特效。该特效在每一个幻灯片slide中展示一个产品大图,以及产品的名称,并且每一个幻灯片slide的背景颜色可以进行平滑的切换过渡。它的特点还有:
- 响应式。支持视口大于320像素的浏览器。
- 支持移动手机。
- 跨浏览器。在IE8和IE9浏览器中,该特效会自动进行回退。你可以使用respond.js来是该特效在IE8中使用 media query。
- 使用简单。
Mono是Sequence.js的一个主题。Sequence.js则是一个响应式的JS+CSS动画框架,用于制作各种幻灯片,展示效果,banners等。
使用方法
在页面中引入下面的CSS和JS文件。
1
2
3
4
5
|
< link rel = "stylesheet" href = "mono/css/sequence-theme.mono.css" /> < script src = "mono/scripts/imagesloaded.pkgd.min.js" ></ script > < script src = "mono/scripts/hammer.min.js" ></ script > < script src = "mono/scripts/sequence.min.js" ></ script > < script src = "mono/scripts/sequence-theme.mono.js" ></ script > |
html结构
将下面的HTML结构复制到你的页面中,你可以修改图片为自己的图片。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
< div id = "sequence" class = "seq" > < ul class = "seq-canvas" > < li class = "seq-step1 seq-valign seq-in" > < div class = "seq-vcenter" > < img data-seq class = "seq-feature" src = "images/bananas.png" alt = "..." < h2 data-seq class = "seq-title" >Bananas</ h2 > </ div > </ li > < li class = "seq-step2 seq-valign" > < div class = "seq-vcenter" > < img data-seq class = "seq-feature" src = "images/coconut.png" alt = "..." < h2 data-seq class = "seq-title" >Coconut</ h2 > </ div > </ li > < li class = "seq-step3 seq-valign" > < div class = "seq-vcenter" > < img data-seq class = "seq-feature" src = "images/orange.png" alt = "..." < h2 data-seq class = "seq-title" >Orange</ h2 > </ div > </ li > </ ul > < fieldset class = "seq-nav" aria-label = "Slider buttons" aria-controls = "sequence" > < button type = "button" class = "seq-prev" aria-label = "Previous" > < img src = "images/prev.svg" alt = "Previous" /> </ button > < ul role = "navigation" aria-label = "Pagination" class = "seq-pagination" > < li class = "seq-current" > < a href = "#step1" rel = "step1" title = "Go to bananas" > </ a > </ li > < li > < a href = "#step2" rel = "step2" title = "Go to coconut" > </ a > </ li > < li > < a href = "#step3" rel = "step3" title = "Go to orange" > </ a > </ li > </ ul > < button type = "button" class = "seq-next" aria-label = "Next" > < img src = "images/next.svg" alt = "Next" /> </ button > </ fieldset > </ div > |
Mono幻灯片特效的官方地址为:http://www.sequencejs.com/themes/mono/
加入前端爱好者QQ群(123235875) 点击加群,共同交流进度!
以上是关于支持移动手机的响应式产品展示幻灯片特效的主要内容,如果未能解决你的问题,请参考以下文章