首页 > 代码库 > 支持移动手机的响应式产品展示幻灯片特效
支持移动手机的响应式产品展示幻灯片特效
在线预览 源码下载
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 = "..." 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) 点击加群,共同交流进度!
支持移动手机的响应式产品展示幻灯片特效
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。