标签:
Mono是一款支持移动手机的响应式产品展示js幻灯片特效。该特效在每一个幻灯片slide中展示一个产品大图,以及产品的名称,并且每一个幻灯片slide的背景颜色可以进行平滑的切换过渡。它的特点还有:
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结构复制到你的页面中,你可以修改图片为自己的图片。
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 = "..." width = "389" height = "300" srcset = "images/bananas.png 1x, images/bananas@2x.png 2x" /> < 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 = "..." width = "325" height = "300" srcset = "images/coconut.png 1x, images/coconut@2x.png 2x" /> < 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 = "..." width = "350" height = "300" srcset = "images/orange.png 1x, images/orange@2x.png 2x" /> < 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" > < img src = "images/tn-bananas@2x.png" alt = "Bananas" width = "50" height = "40" /> </ a > </ li > < li > < a href = "#step2" rel = "step2" title = "Go to coconut" > < img src = "images/tn-coconut@2x.png" alt = "Coconut" width = "50" height = "40" /> </ a > </ li > < li > < a href = "#step3" rel = "step3" title = "Go to orange" > < img src = "images/tn-orange@2x.png" alt = "Orange" width = "50" height = "40" /> </ 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) 点击加群,共同交流进度!
标签:
原文地址:http://www.cnblogs.com/w2bc/p/5817815.html