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

Posted

tags:

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

<div class="mainbag">
	<div vs-anchor="firstview" class="mainview">View 1</div>
	<div vs-anchor="secondview" class="mainview">
		<div class="subbag">
			<div vs-anchor="firstsubview" class="subview">Subview A</div>
			<div vs-anchor="secondsubview" class="subview">Subview B</div>
			<div vs-anchor="thirdsubview" class="subview">Subview C</div>
		</div>
	</div>
	<div vs-anchor="thirdview" class="mainview">View 3</div>
</div>
$('.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.js |将viewScroller添加到Sage 9的主要内容,如果未能解决你的问题,请参考以下文章

VIE GLOBAL搜索引擎为广告业去中心化而开发区块链潜能

Resultados de una视图

vie项目在ie里打开报内存不足

PHP while 循环加 2

在php中将存储过程从一个数据库复制到另一个数据库

Accidental override: The following declarations have the same JVM signature (getWindow()Landroid/vie