php viewScroller.j |将viewScroller添加到Sage 9

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php viewScroller.j |将viewScroller添加到Sage 9相关的知识,希望对你有一定的参考价值。

$('.mainbag').viewScroller({
  // Animation
  animSpeedMainView: 700, // Animation speed of mainviews: 0 - fastest
  animSpeedSubView: 700, // Animation speed of subviews: 0 - fastest
  animEffectMainView: 'easeInOutCubic', // Animation effect of mainviews change - jQuery (easing)
  animEffectSubView: 'easeInOutCubic', // Animation effect of subviews change - jQuery (easing)
  animEffectMainViewCss3: 'ease', // Animation effect of mainviews change - CSS3 (easing)
  animEffectSubViewCss3: 'ease', // Animation effect of subviews change - CSS3 (easing)
  
  // Steering
  useKeyboard: true, // Use keyboard to change views
  useScrollbar: false, // Use scrollbar to change views
  changeWhenAnim: true, // Change views when they are changing
  loopMainViews: false, // Change horizontal views (mainviews) in loop mode
  loopSubViews: false, // Change vertical views (subviews) in loop mode
  fitToView: true, // Will the browser fit to the closest view (works if the useScrollbar option is true)
  timeToFit: 1000, // Time between stop scrolling and start fitting to the closest view
  
  // Mainbag dimension
  fixedWidth: 0, // (in px) width of the mainbag - if 0 - then width = 100% of window (in px) = .mainbag { width: XXX }
  spaceMainBag: 0, // (in px) a total value of the right and the left CSS margin dimensions of the .mainbag, for example: if .mainbag { left: XXX, right: YYY} then spaceMainBag = XXX + YYY
  
  // Callbacks
  beforeChange: null, // Callback which is called before views change
  afterChange: null, // Callback which is called after views change
  beforeResize: null, // Callback which is called before browser window resize
  afterResize: null, // Callback which is called after browser window resize
});
wp_enqueue_style('viewScroller-css', get_template_directory_uri() . '/viewscroller/viewScroller.min.css', false, null);
wp_enqueue_script('viewScroller-js', get_template_directory_uri() . '/viewscroller/viewScroller.min.js', ['jquery'], null, true);

以上是关于php viewScroller.j |将viewScroller添加到Sage 9的主要内容,如果未能解决你的问题,请参考以下文章

使用 Views 模块(Drupal 7)显示 php 数组

Drupal 6 视图 2:PHP 片段

Codeigniter-将视图缓存到视图中

php高频率面试题

Street View Publish API PHP - 上传元数据后找不到上传参考

php基础面试题1