JPo*_*ock 3 jquery zurb-foundation orbit
我正在尝试使用我在此问题中找到的脚本在Foundation 3中运行Orbit,但我无法正确初始化它.我在页脚中添加了此脚本,在标题中添加了Foundation.min.js.我在我的控制台的第3行得到一个没有方法'基础'错误它不起作用.
您链接到的SO线程中的脚本将不适用于您,因为它使用Foundation 4. Orbit在Foundation 3(F3)中进行了不同的初始化.所以假设你有一个带id的元素orbitX.你初始化它像这样:
$("#orbitX").orbit();
Run Code Online (Sandbox Code Playgroud)
在你提出的另一个SO问题中
你会在哪里添加其他设置?
你在初始化你的轨道元素时这样做:
$("#orbitX").orbit({
bullets: false; // to hide the bullets
});
Run Code Online (Sandbox Code Playgroud)
这是完整的选项集
$('#orbitX').orbit({
animation: 'fade', // fade, horizontal-slide, vertical-slide, horizontal-push
animationSpeed: 800, // how fast animtions are
timer: true, // true or false to have the timer
resetTimerOnClick: false, // true resets the timer instead of pausing slideshow progress
advanceSpeed: 4000, // if timer is enabled, time between transitions
pauseOnHover: false, // if you hover pauses the slider
startClockOnMouseOut: false, // if clock should start on MouseOut
startClockOnMouseOutAfter: 1000, // how long after MouseOut should the timer start again
directionalNav: true, // manual advancing directional navs
captions: true, // do you want captions?
captionAnimation: 'fade', // fade, slideOpen, none
captionAnimationSpeed: 800, // if so how quickly should they animate in
bullets: false, // true or false to activate the bullet navigation
bulletThumbs: false, // thumbnails for the bullets
bulletThumbLocation: '', // location from this file where thumbs will be
afterSlideChange: function(){}, // empty function
fluid: true // or set a aspect ratio for content slides (ex: '4x3')
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
545 次 |
| 最近记录: |