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

FlexSlider是一个非常出色的jQuery滑动切换插件

FlexSlider是一个非常出色的jQuery滑动切换插件,它支持所有主流浏览器,并有淡入淡出效果。适合所有初级和高级网页设计师使用。不过很多人都只是使用默认的参数,今天来说说具体的参数来给大家看看!

$(window).load(function() {
$('.flexslider').flexslider({
animation: "fade", //String: Select your animation type, "fade" or "slide"图片变换方式:淡入淡出或者滑动
slideDirection: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"图片设置为滑动式时的滑动方向:左右或者上下
slideshow: true, //Boolean: Animate slider automatically 载入页面时,是否自动播放
slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds 自动播放速度毫秒
animationDuration: 600, //Integer: Set the speed of animations, in milliseconds动画淡入淡出效果延时
directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)是否显示左右控制按钮
controlNav: true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage是否显示控制菜单
keyboardNav: true, //Boolean: Allow slider navigating via keyboard left/right keys键盘左右方向键控制图片滑动
mousewheel: false, //Boolean: Allow slider navigating via mousewheel鼠标滚轮控制制图片滑动
prevText: "Previous", //String: Set the text for the "previous" directionNav item
nextText: "Next", //String: Set the text for the "next" directionNav item
pausePlay: false, //Boolean: Create pause/play dynamic element
pauseText: 'Pause', //String: Set the text for the "pause" pausePlay item
playText: 'Play', //String: Set the text for the "play" pausePlay item
randomize: false, //Boolean: Randomize slide order 是否随即幻灯片
slideToStart: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)初始化第一次显示图片位置
animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end 是否循环滚动
pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
controlsContainer: "", //Selector: Declare which container the navigation elements should be appended too. Default container is the flexSlider element. Example use would be ".flexslider-container", "#container", etc. If the given element is not found, the default action will be taken.
manualControls: "", //Selector: Declare custom control navigation. Example would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.自定义控制导航
manualControlEvent:"", //String:自定义导航控制触发事件:默认是click,可以设定hover
start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide
before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation
after: function(){}, //Callback: function(slider) - Fires after each slider animation completes
end: function(){} //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)

});
});

转载于:https://www.cnblogs.com/liucaixia/p/5135463.html

相关文章:

  • 电脑屏幕旋转工具 躺着看才舒服。
  • UESTC--1265--宝贵资源(简单数学)
  • 删除无法删除的文件
  • 多线程篇-RunLoop
  • 上传图片文件
  • XP仿Windows7主题包 不占内存的。
  • Divide and conquer:Moo University - Financial Aid(POJ 2010)
  • 万能摄像头驱动最新版 还有万能摄像头驱动怎么用的教程
  • HTML5的学习(三)HTML5标签
  • on-tap和on-click
  • Windows Live Writer 技巧收集
  • Android学习笔记—Windows下NDK开发简单示例
  • 推荐系统原理简析
  • 用谷歌拼音输入法
  • centos7 jsoup java.net.UnknownHostException
  • 【剑指offer】让抽象问题具体化
  • CSS中外联样式表代表的含义
  • Git初体验
  • iOS编译提示和导航提示
  • iOS帅气加载动画、通知视图、红包助手、引导页、导航栏、朋友圈、小游戏等效果源码...
  • Java 23种设计模式 之单例模式 7种实现方式
  • Javascript编码规范
  • JS数组方法汇总
  • vue 个人积累(使用工具,组件)
  • vue学习系列(二)vue-cli
  • 安卓应用性能调试和优化经验分享
  • 闭包--闭包作用之保存(一)
  • 高性能JavaScript阅读简记(三)
  • 工程优化暨babel升级小记
  • 码农张的Bug人生 - 见面之礼
  • 如何学习JavaEE,项目又该如何做?
  • 使用API自动生成工具优化前端工作流
  • 使用Maven插件构建SpringBoot项目,生成Docker镜像push到DockerHub上
  • 通过几道题目学习二叉搜索树
  • 学习使用ExpressJS 4.0中的新Router
  • # Pytorch 中可以直接调用的Loss Functions总结:
  • ###C语言程序设计-----C语言学习(3)#
  • #{}和${}的区别?
  • #define、const、typedef的差别
  • #使用清华镜像源 安装/更新 指定版本tensorflow
  • (175)FPGA门控时钟技术
  • (3)STL算法之搜索
  • (vue)el-checkbox 实现展示区分 label 和 value(展示值与选中获取值需不同)
  • (第27天)Oracle 数据泵转换分区表
  • (二)c52学习之旅-简单了解单片机
  • (二)windows配置JDK环境
  • (附源码)springboot家庭装修管理系统 毕业设计 613205
  • (四)Tiki-taka算法(TTA)求解无人机三维路径规划研究(MATLAB)
  • (学习日记)2024.04.04:UCOSIII第三十二节:计数信号量实验
  • (一)WLAN定义和基本架构转
  • (转)LINQ之路
  • *p=a是把a的值赋给p,p=a是把a的地址赋给p。
  • .libPaths()设置包加载目录
  • .NET Core 中插件式开发实现
  • .Net Redis的秒杀Dome和异步执行