当前位置: 首页 > news >正文

基于 html5的 jquery 轮播插件 flickerplate

https://github.com/chrishumboldt/Flickerplate

官网



   
  1. <link href="${baseURL}/themes/default/css/flickerplate.css" rel="stylesheet" type="text/css">
  2. <script src="${baseURL}/themes/default/js/hammer-v2.0.3.js"></script>
  3. <script src="${baseURL}/themes/default/js/flickerplate.js"></script>

引入上面3个   hammer-v是响应式用到的支持触控



   
  1. <div class="lb_container" style="height: 200px;">
  2. <ul>
  3. <c:forEach items="${requestScope.housephotoes}" var="housev">
  4. <li data-background="${housev.APPPHOTOURL}">
  5. </li>
  6. </c:forEach>
  7. </ul>
  8. </div>

上面是设置背景图片的  ,  官网只提供了设置普通文字 , 只是在li 下面加两个标签即可


<li data-background="image-url.jpg">
            <div class="flick-title">Example Heading</div>
            <div class="flick-sub-text">Sub Text</div>
        </li>


最新版初始化


   
  1. new flickerplate({
  2. selector: '.lb_container',
  3. animation: 'transition-fade',
  4. autoFlick: false,
  5. dotAlignment: 'right',
  6. theme: 'dark'
  7. });


api 解释还没有中文


NameDefaultOptionsDescription
animationtransform-slidetransform-slide, transform-slide, transition-fade, transition-slideChoose the animation type you want.
arrowstruetrue, falseArrows are used to navigate back and forth between the flicks.
arrowsConstraintfalsetrue, falseWhen you get to the end of the flicks pressing the next arrow will navigate you to the beginning again should you have a false constraint. The same applies to the previous arrow.
autoFlicktruetrue, falseSets the flick to run automatically. A manual flick resets the delay.
autoFlickDelay10Set the delay (in seconds) between each auto flick.
dotAlignmentcentercenter, left, rightSet the horizontal alignment of the dot navigation.
dotstruetrue, falseDot navigation is used to indicate and navigate between the flicks.
position1Set the starting flick.
themelightlight, darkCurrently two options, light and dark. This will set the font colour, block text colour, arrows and dots to either dark or light.

但是有原版的解释  对照参考即可

属性/方法类型默认值说明
arrows布尔值true显示左右箭头控制
arrows_constraint布尔值false左右到头了禁止点击
auto_flick布尔值true自动播放
auto_flick_delay整数10自动播放间隔,以秒为单位
block_text布尔值true文字显示背景阴影
dot_navigation布尔值true显示圆点导航
dot_alignment字符串center圆点导航位置
flick_animation字符串transition-slide动画切换方式,可选 transition-slide、transform-slide、jquery-slide、scroller-slide 4种
flick_position整数1
inner_width布尔值false
theme字符串light设置主题,可选 light、dark 2种








相关文章:

  • 定义运算符
  • [转]ZooKeeper 集群环境搭建 (本机3个节点)
  • https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins
  • 《大学章句》光剑续编
  • 犀牛Phinoceros 如何切换中文语言
  • Spring4-EL中正则表达式的使用
  • web开发之Cookie使用
  • Python之Seaborn
  • php5.6源码安装及php-fpm配置与nginx集成
  • Hibernate(1)
  • 史上最详细 VUE2.0 全套 demo 讲解 基础3(计算属性)
  • JS+CSS实现数字滚动
  • [Lucas定理]【学习笔记】
  • 转BFS
  • Linux学习之路(三)搜索命令
  • 【翻译】babel对TC39装饰器草案的实现
  • 【面试系列】之二:关于js原型
  • AWS实战 - 利用IAM对S3做访问控制
  • js面向对象
  • node.js
  • PAT A1092
  • SOFAMosn配置模型
  • spark本地环境的搭建到运行第一个spark程序
  • SpriteKit 技巧之添加背景图片
  • UEditor初始化失败(实例已存在,但视图未渲染出来,单页化)
  • 对象管理器(defineProperty)学习笔记
  • 聊聊flink的BlobWriter
  • 买一台 iPhone X,还是创建一家未来的独角兽?
  • 如何优雅的使用vue+Dcloud(Hbuild)开发混合app
  • 一些关于Rust在2019年的思考
  • puppet连载22:define用法
  • raise 与 raise ... from 的区别
  • 国内开源镜像站点
  • ​ 无限可能性的探索:Amazon Lightsail轻量应用服务器引领数字化时代创新发展
  • ​一些不规范的GTID使用场景
  • # 手柄编程_北通阿修罗3动手评:一款兼具功能、操控性的电竞手柄
  • # 数论-逆元
  • #include到底该写在哪
  • #pragma once与条件编译
  • (4)事件处理——(7)简单事件(Simple events)
  • (6)STL算法之转换
  • (k8s中)docker netty OOM问题记录
  • (附源码)springboot猪场管理系统 毕业设计 160901
  • (附源码)ssm高校实验室 毕业设计 800008
  • (九十四)函数和二维数组
  • (论文阅读31/100)Stacked hourglass networks for human pose estimation
  • (十)【Jmeter】线程(Threads(Users))之jp@gc - Stepping Thread Group (deprecated)
  • (转载)Google Chrome调试JS
  • * 论文笔记 【Wide Deep Learning for Recommender Systems】
  • .gitignore文件—git忽略文件
  • .NET : 在VS2008中计算代码度量值
  • .NET Core 中的路径问题
  • .NET Framework .NET Core与 .NET 的区别
  • .net 开发怎么实现前后端分离_前后端分离:分离式开发和一体式发布
  • @DateTimeFormat 和 @JsonFormat 注解详解