jquery.themepunch.tools.min.js jquery.themepunch.revolution.js jquery.themepunch.revolution.min.js

Slider Revolution 響應式 jQuery 滑塊


如需支援,請查看 http://themepunch.com !

本章將提供您安裝滑塊及設定選項的一般說明。後續章節將視需要提供更詳細的內容。

 

我需要上傳哪些檔案到伺服器?

請上傳 rs-plugin 資料夾到您的伺服器。在此資料夾中,您將找到包含所有項目內容的以下子資料夾:

您可以使用自己的 jQuery,但我們建議直接從 Google 資源載入(請參閱本文件後續說明)。

您會在您下載的壓縮檔中的 範例 資料夾下找到許多 範例與來源 。 

 

實作 jQuery

將以下幾行加入您的 HTML Head 中: 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js></script>

 

將 Revolution js 和 css 檔案加入您的 HTML 頁面

 
同樣在 <HEAD> 區段中:
 
<!-- jQuery REVOLUTION Slider  -->
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.tools.min.js"></script>
<script type="text/javascript" src="rs-plugin/js/jquery.themepunch.revolution.min.js"></script>

<!-- REVOLUTION BANNER CSS SETTINGS -->
<link rel="stylesheet" type="text/css" href="rs-plugin/css/settings.css" media="screen" />
 
這包含了滑塊本身的 JS 和 CSS 以及一些輔助模組。
 
 

為橫幅建立一個容器

 
將其放入 HTML 中:(此處使用的類別名稱僅為範例。在我們的範例檔案中,我們將其命名為 banner-container、fullwidthbanner-container 和 fullscreenbanner-container,與下方不同!)
<div class="bannercontainer">
<div class="banner">...</div>
</div>
橫幅容器可以根據您想要使用的佈局而有不同的樣式。 
 
自動響應式樣式 

此樣式允許讓包覆的容器決定您的滑塊寬度。高度將根據滑塊寬度自動計算。

將此放入您的 CSS 檔案(例如):

.bannercontainer {
	width:100%;
	position:relative;
	padding:0;
}

.banner{
	width:100%;
	position:relative;
}

 

全螢幕樣式

此樣式允許橫幅始終適應最大螢幕尺寸。在某些選項中,您可以選擇容器,這些容器會根據容器高度減少橫幅的高度。請參閱範例。

它需要:

  • 一個全寬和全高的包覆容器

將此放入您的 CSS 檔案

.bannercontainer {
		width:100%;
		position:relative;
		padding:0;
}

 

建立您的第一張投影片

在橫幅容器內建立一個無序列表,其中每個 <li> 元素將對應一張投影片。

 

<ul>
<!-- THE BOXSLIDE EFFECT EXAMPLES  WITH LINK ON THE MAIN SLIDE EXAMPLE -->

 <li data-transition="boxslide" data-slotamount="7" data-link="http://www.google.de">
   <img src="images/slides/image1.jpg">
   <div class="caption sft big_white"  data-x="400" data-y="100" data-speed="700" data-start="1700" data-easing="easeOutBack">KICKSTART YOUR WEBSITE</div>
   <div class="caption sfb big_orange"  data-x="400" data-y="142" data-speed="500" data-start="1900" data-easing="easeOutBack">WITH SLIDER REVOLUTION!</div>
   <div class="caption lfr medium_grey"  data-x="510" data-y="210" data-speed="300" data-start="2000">UNLIMITED TRANSITIONS</div>
 </li>
...
</ul>
 

呼叫 jQuery 外掛程式來建立滑塊

(無需設定所有選項。這些僅用於示範所有設定)

 

<script type="text/javascript">

   jQuery(document).ready(function() {
      jQuery('.banner').revolution({
         delay:9000,
         startwidth:960,
         startheight:500,
         startWithSlide:0,

         fullScreenAlignForce:"off",
         autoHeight:"off",
         minHeight:"off",

         shuffle:"off",

         onHoverStop:"on",

         thumbWidth:100,
         thumbHeight:50,
         thumbAmount:3,

         hideThumbsOnMobile:"off",
         hideNavDelayOnMobile:1500,
         hideBulletsOnMobile:"off",
         hideArrowsOnMobile:"off",
         hideThumbsUnderResoluition:0,

         hideThumbs:0,
         hideTimerBar:"off",

         keyboardNavigation:"on",

         navigationType:"bullet",
         navigationArrows:"solo",
         navigationStyle:"round",

         navigationHAlign:"center",
         navigationVAlign:"bottom",
         navigationHOffset:30,
         navigationVOffset:30,

         soloArrowLeftHalign:"left",
         soloArrowLeftValign:"center",
         soloArrowLeftHOffset:20,
         soloArrowLeftVOffset:0,

         soloArrowRightHalign:"right",
         soloArrowRightValign:"center",
         soloArrowRightHOffset:20,
         soloArrowRightVOffset:0,


         touchenabled:"on",
         swipe_velocity:"0.7",
         swipe_max_touches:"1",
         swipe_min_touches:"1",
         drag_block_vertical:"false",

         parallax:"mouse",
         parallaxBgFreeze:"on",
         parallaxLevels:[10,7,4,3,2,5,4,3,2,1],
         parallaxDisableOnMobile:"off",

         stopAtSlide:-1,
         stopAfterLoops:-1,
         hideCaptionAtLimit:0,
         hideAllCaptionAtLilmit:0,
         hideSliderAtLimit:0,

         dottedOverlay:"none",

         spinned:"spinner4",

         fullWidth:"off",
         forceFullWidth:"off"
         fullScreen:"off",
         fullScreenOffsetContainer:"#topheader-to-offset",
         fullScreenOffset:"0px",

         panZoomDisableOnMobile:"off",

         simplifyAll:"off",

         shadow:0

      });

   });

</script>

 

初始化外掛程式的選項(按主題排序):

全域設定:
  • delay 

    每張投影片停留在螢幕上的時間(毫秒)。全域設定。您可以透過 <li> 元素中的 data-delay 為每張投影片設定額外的本地延遲時間(預設值:9000)
     
  • startheight 

    這是顯示字幕的網格高度(像素)。此高度是全寬佈局和響應式佈局中滑塊的最大高度。在全螢幕佈局中,如果滑塊高於此值,網格將垂直居中。
     
  • startwidth 

    這是顯示字幕的網格寬度(像素)。此寬度是響應式佈局中滑塊的最大寬度。在全螢幕和全寬佈局中,如果滑塊寬於此值,網格將水平居中。
     
導航設定:
  • keyboardNavigation

    可能值:"on", "off" - 允許在滑塊獲得焦點時使用左右箭頭進行鍵盤導航。
     
  • onHoverStop

    可能值:"on", "off" - 當滑鼠懸停在滑塊上時停止計時器。字幕動畫不會停止!它們只會播放到結束。
     
  • thumbWidth / thumbHeight

    縮圖的寬度和高度(像素)。縮圖基本上不具響應性。如需響應式縮圖,您需要建立基於媒體查詢的縮圖尺寸。 
     
  • thumbAmount

    同時可見的縮圖數量。其餘縮圖僅在懸停或投影片切換時可見。
     
  • hideThumbs

    0 - 永不隱藏縮圖。1000-100000(毫秒)在預設毫秒後隱藏縮圖和導航箭頭、項目符號(1000毫秒 == 1秒,1500 == 1.5秒等)
  • navigationType  「項目符號/縮圖」列的顯示類型(預設值:"none")

    可能值為:"bullet", "thumb", "none" 
     
  • navigationArrows 導航箭頭的顯示位置(預設值:"nexttobullets")

    可能值為 "nexttobullets", "solo" 
    nexttobullets - 箭頭新增在項目符號的左右兩側
    solo - 箭頭可以獨立定位,請參閱進一步選項
     
  • navigationStyle 如果選擇 navigationType "bullet",導航項目符號的外觀。

    可能值:"preview1", "preview2","preview3","preview4","round", "square", "round-old", "square-old", "navbar-old"
     
  • navigationHAlign, navigationVAlign

    導航項目符號/縮圖的垂直和水平對齊(取決於所選樣式)。可能值 navigationHAlign: "left","center","right" 和 navigationVAlign: "top","center","bottom"
     
  • navigationHOffset navigationVOffset

    導航根據對齊位置的偏移位置。從 -1000 到 +1000 的任何像素值。例如 -30  
     
  • soloArrowLeftHaling, soloArrowRightHalign, solorArrowLeftHalign, soloArrowRightHalign

    導航箭頭的垂直和水平對齊(左右獨立!)可能值 navigationHAlign: "left","center","right" 和 navigationVAlign: "top","center","bottom"
     
  • soloArrowLeftHOffset, soloArrowLeftVOffset, soloArrowRightHVOffset, soloArrowRightVOffset

    導航根據對齊位置的偏移位置。從 -1000 到 +1000 的任何像素值。例如 -30。每個箭頭獨立
     
  • touchenabled 在觸控裝置上啟用滑動功能(預設值:"on")

    可能值:"on", "off"
     
  • swipe_velocity 滑動手勢的靈敏度(數值越低越靈敏)(預設值:0.7)

    可能值:0 - 1
     
  • swipe_max_touches 最大觸摸手指數量(預設值:1)

    可能值:1 - 5
     
  • swipe_min_touches 最小觸摸手指數量(預設值:1)

    可能值:1 - 5
     
  • drag_block_vertical 防止拖曳時垂直滾動(預設值:false)

    可能值:true, false
     
循環
  • startWithSlide

    從預設投影片開始(投影片索引)  
  • stopAtSlide

    當到達投影片「x」時停止計時器。如果 stopAfterLoops 設為 0,則它會在第一次循環中就在定義的投影片 X 處停止。-1 表示不在任何投影片處停止。在這種情況下 stopAfterLoops 沒有意義。
     
  • stopAfterLoops

    當所有投影片播放「x」次後停止計時器。它將在透過 stopAtSlide:x 定義的投影片處停止,如果設為 -1,投影片永不自動停止。
     
行動裝置可見性
  • hideCaptionAtLimit

    定義字幕是否應在低於某個螢幕解析度(基於瀏覽器寬度)時顯示
     
  • hideAllCaptionAtLimit

    如果瀏覽器寬度小於此值,隱藏所有字幕
     
  • hideSliderAtLimit

    如果瀏覽器寬度小於此值,隱藏整個滑塊並停止功能

  • hideNavDelayOnMobile
    在行動裝置上過一段時間後隱藏所有導航(基於觸摸和釋放事件)

  • hideThumbsOnMobile

    可能值:"on", "off" - 如果設為 "on",縮圖不會在行動裝置上顯示
     
  • hideBulletsOnMobile

    可能值:"on", "off" - 如果設為 "on",項目符號不會在行動裝置上顯示
     
  • hideArrowsOnMobile

    可能值:"on", "off" - 如果設為 "on",箭頭不會在行動裝置上顯示
     
  • hideThumbsUnderResoluition

    可能值:0 - 1900 - 定義在何種解析度下應隱藏縮圖。(僅在 hideThumbonMobile 設為 off 時有效)
     
佈局樣式
  • spinner

    可能值:"spinner1" , "spinner2", "spinner3" , "spinner4", "spinner5" - 載入器的佈局。如果未定義,將使用基本旋轉器。
     
  • hideTimerBar

    可能值:"on" , "off" - 將隱藏或顯示橫幅計時器
     
  • fullWidth

    可能值:"on", "off" - 定義是否啟用全寬/自動響應模式
     
  • autoHeight

    可能值:"on", "off" - 定義在全寬模式下滑塊的高度是否始終可以按比例增長。如果設為 "off",最大高度 == startheight
     
  • minHeight

    可能值:0 - 9999 - 定義滑塊的最小高度。滑塊容器高度永遠不會小於此值。內容容器仍會根據瀏覽器寬度和容器原始寬度線性縮小,並在滑塊中垂直居中
     
  • fullScreenAlignForce

    可能值:"on", "off" - 僅允許在全螢幕模式下使用。它讓字幕網格成為全螢幕,意味著所有位置都應透過對齊和偏移來實現。這允許您使用滑塊的最遠角落來呈現任何字幕。
     
  • forceFullWidth

    可能值:"on", "off" - 即使滑塊嵌入在盒狀容器中,也強制使用全寬尺寸。這可能會導致更高的 CPU 效能消耗。請先嘗試將其設為 "off" 並使用全寬容器,而不是使用此選項。
     
  • fullScreen

    可能值:"on", "off" - 定義是否啟用全螢幕模式
     
  • fullScreenOffsetContainer

    該值是一個容器 ID 或類別,例如 "#topheader" - 全高的高度將增加此容器的高度!
     
  • fullScreenOffset

    一個 px 或 % 值,將被加入/減去全高容器的計算中。
     
  • shadow

    可能值:0,1,2,3(0 == 無陰影,1,2,3 - 不同的陰影類型)
     
  • dottedOverlay

    可能值:"none", "twoxtwo", "threexthree", "twoxtwowhite", "threexthreewhite" - 為背景圖像額外建立點狀疊加層。最適合用於圖像過於像素化的全螢幕/全寬滑塊。
     
視差設定
  • parallax

    可能值:"mouse" , "scroll" - 視差應如何運作。在滑鼠懸停移動和行動裝置傾斜時,或在滾動時(行動裝置上禁用滾動!)
     
  • parallaxBgFreeze

    可能值:"on", "off" - 如果關閉,主投影片圖像也會在滾動時以視差等級 1 移動。
     
  • parallaxLevels

    一個定義視差深度(0 - 10)的陣列。根據該值,它將定義滑鼠移動或滾動時視差偏移的強度。在圖層中,您可以使用像 rs-parallaxlevel-1 這樣的類別來表示不同等級。如果一個 tp-caption 圖層具有 rs-parallaxlevel-X(X 1-10),則它會啟動該圖層上的視差移動。  
  • 可用值:"none", "twoxtwo", "threexthree", "twoxtwowhite", "threexthreewhite" - 為背景圖像額外建立點狀疊加層。最適合用於圖像過於像素化的全螢幕/全寬滑塊。
     
  • parallaxDisableOnMobile

    可能值:"on", "off" - 開啟/關閉行動裝置上的視差效果
     
平移縮放設定
  • panZoomDisableOnMobile

    可能值:"on", "off" - 開啟/關閉行動裝置上的平移縮放效果
     
其他選項
  • simplifyAll

    可能值:"on", "off" - 在舊版瀏覽器(如 IE8 和 iOS4 Safari)上將所有動畫設為淡入淡出,不分割字母以節省效能
     

 

投影片選項

 
<li> - 每個列表項代表一張新投影片。要定義轉場、主要連結等,請對每個列表項使用以下 data- 值。
 
轉場效果
連結(全幻燈片連結)
縮圖
標題

 

主圖片


每張幻燈片 (<li> </li>) 必須 必須包含一張主圖片,該圖片以簡單的 <img> 標籤形式添加在第一層。它可以是一張簡單圖片、彩色或透明圖片,或作為延遲加載版本的佔位圖片。

簡單圖片
<img src="images/slides/slide13.jpg" >
彩色背景(替代圖片)
<img src="images/slides/transparent.png" style="background-color:#56e34a" >
延遲加載圖片
<img src="images/slides/dummy.webp" data-lazyload="images/slides/slide13.jpg">
平鋪圖片
<img src="images/slides/slide13.jpg" data-bgrepeat="repeat" data-bgfit="normal" data-bgposition="center center">
適應圖片
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="contain" data-bgposition="center center">
覆蓋圖片
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="cover" data-bgposition="center center">
右下對齊覆蓋圖片
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="cover" data-bgposition="right bottom">
圖片上的肯·伯恩斯動畫
<img src="images/kenburns1.jpg"  alt="kenburns1"  data-bgposition="left bottom" data-kenburns="on" data-duration="2000" data-ease="Power4.easeInOut" data-bgfit="200" data-bgfitend="100" data-bgpositionend="center top">
 
圖片屬性

字幕 / 圖層

每張 <li>(幻燈片)可以包含無限數量的字幕。字幕是簡單的 HTML 標記,可以包含 iframe、圖片、標題、段落和其他任何標籤。每個字幕必須包裹在 <div class="caption"></div> 中。

每個字幕都有一些特殊的類別和 data- 屬性,用於設定動畫類型、位置、速度、緩動函數等。

字幕類別
  • 「caption」類別

    這是必須的包裝主類別。每個字幕都需要像這樣定義,否則幻燈片外掛程式將無法識別字幕容器。
     
  • 樣式化字幕 (例如 "big_white"、"big_orange"、"medium_grey" 等)

    這些是在 settings.css 中建立的樣式類別。您可以在自己的 CSS 檔案中添加無限數量的樣式,以便在頂層為您的字幕設定樣式。
     
  • 視差設定 (例如 "rs-parallaxlevel-1"、"rs-parallaxlevel-2"、"rs-parallaxlevel-3" 等)

    您可以為每個圖層定義一個視差等級,這將允許圖層根據滾動或滑鼠移動(如果啟用了該選項)進行移動。根據類別,可以定義偏移的強度。
     
  • 動畫類別

    動畫類別定義了字幕的開始 / 結束動畫。  

    進入 動畫類別:

    sft - 從上方短距離進入
    sfb - 從下方短距離進入
    sfr - 從右方短距離進入
    sfl - 從左方短距離進入
    lft - 從上方長距離進入
    lfb - 從下方長距離進入
    lfr - 從右方長距離進入
    lfl - 從左方長距離進入
    skewfromleft - 從左方傾斜進入
    skewfromright - 從右方傾斜進入
    skewfromleftshort - 從左方短距離傾斜進入
    skewfromrightshort - 從右方短距離傾斜進入
    fade - 淡入
    randomrotate- 從隨機位置與角度旋轉淡入
    customin - 自訂進入動畫 — 請參閱下方所有資料設定

    離開 動畫類別:

    stt - 向上方短距離離開
    stb - 向下方短距離離開
    str - 向右方短距離離開
    stl - 向左方短距離離開
    ltt - 向上方長距離離開
    ltb - 向下方長距離離開
    ltr - 向右方長距離離開
    ltl - 向左方長距離離開
    skewtoleft - 向左方傾斜離開
    skewtoright - 向右方傾斜離開
    skewtoleftshort - 向左方短距離傾斜離開
    skewtorightshort - 向右方短距離傾斜離開
    fadeout - 淡入
    randomrotateout超凡国际以尊享服务,成就极致体验为核心,带来高效便捷的体验。
    customout - 自訂離開動畫 — 請參閱下方所有資料設定

    自訂 進入 / 離開 設定:

    data-customin="rotationX:0;rotationY:0;rotationZ:0...." - 標題在動畫開始前的變換方式。所有數值將動畫化為 0 或 1,以移除標題的所有變換。

    data-customout="rotationX:0;rotationY:0;rotationZ:0...."- 動畫結束後的結束變換樣式。所有數值將從 0 或 1 動畫化為所選的變換。

    自訂動畫(進入與離開)參數透過 data-customin 和 data-customout 在標題 div 內設定。參數應以「;」結尾

    rotationX:0;rotationY:0;rotationZ:0 - 介於 -920 到 +920 之間的值。可透過 X、Y、Z 設定旋轉方向,並可混合使用
    scaleX:1;scaleY:1 - 介於 0.00 到 10.00 之間的值。縮放寬度和高度。1 等於 100%
    skewX:1;skewY:1 - 介於 0.00 到 10.00 之間的值。在垂直和/或水平方向上的傾斜。0 表示無傾斜
    opacity:1 - 介於 0.00 到 1.00 之間的值。透明度
    transformOrigin:center center - 設定所有變換的原點。預設情況下,位於元素的中心("50% 50%")。您可以使用關鍵字 "top"、"left"、"right" 或 "bottom" 來定義值,也可以使用百分比(右下角為 "100% 100%")或像素。
    數值:左上 / 左中 / 左下 / 中上 / 中中 / 中下 / 右上 / 右中 / 右下 或 x% y%
    transformPerspective:300 - 若要讓元素呈現真正的 3D 視覺透視效果,您必須在父元素上設定「perspective」屬性,或在元素本身設定特殊的「transformPerspective」(常用數值範圍約為 200 到 1000,數值越小,透視變形效果越強)。
    x:0;y:0; - 元素的 x / y 距離(單位為 px)。例如:x:-50px 表示水平向左 50px
標題 data- 設定

 

 
Special Classes within the Caption container
Loop Animations Within the Layers

想了解更多全球视野,洞察未来趋势相关内容,尽在超凡国际。

 

 

超凡国际围绕超凡国际官网不断创新,回应用户的真实需求。

精选超凡国际娱乐内容,超凡国际与你一同发现更多精彩。

Add your Static Layers into the static layer wrapper under the <ul> tag within the Slider !
<ul>
...your slides and layers...
</ul>

<div class="tp-static-layers">
	<!-- LAYER NR. 1 -->
	<div class="tp-caption customin customout tp-static-layer"
		data-x="center" data-hoffset="100"
		data-y="bottom" data-voffset="0"
		data-customin="x:50;y:150;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.5;scaleY:0.5;skewX:0;skewY:0;opacity:0;transformPerspective:0;transformOrigin:50% 50%;"
		data-customout="x:0;y:0;z:0;rotationX:0;rotationY:0;rotationZ:0;scaleX:0.75;scaleY:0.75;skewX:0;skewY:0;opacity:0;transformPerspective:600;transformOrigin:50% 50%;"
		data-speed="800"
		data-start="700"
		data-startslide="1"
		data-endslide="4"
		data-end="1800"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeIn"
		style="z-index: 3"><div class="rs-wave" data-angle="90" data-distance="40" data-radius="40" data-speed="2"><img src="images/woman.png" alt=""></div>
	</div>
</div>
	  

 

超凡国际专注超凡国际官方网站,为用户提供专业可靠的体验。

Each Video file has the same data- options like:

 

YouTube Video via iFrame

Boxed version

围绕超凡国际平台,超凡国际持续打磨更优质的服务。

<div class="caption fade "
   data-autoplay="true"
   data-autoplayonlyfirsttime="true"
   data-thumbimage="yourpath/yourimage"
   data-nextslideatend="false"
   data-x="130"
   data-y="70"
   data-speed="500"
   data-start="10"
   data-easing="easeOutBack">
<iframe src="http://www.youtube.com/embed/T8--OggjJKQ?enablejsapi=1&html5=1&hd=1&wmode=opaque&controls=1&showinfo=0;rel=0;" width="460" height="259"></iframe>
</div>

超凡国际深耕尖端技术,引领行业前沿领域,用心服务每一位用户。


FullWidth Version (/i.e.)
 <div class="caption fade fullscreenvideo"
     data-autoplay="true"
     data-autoplayonlyfirsttime="true"
     data-thumbimage="yourpath/yourimage"
     data-nextslideatend="true"
     data-x="0"
     data-y="0"
     data-speed="500"
     data-start="10"
     data-easing="easeOutBack">
<iframe src="http://www.youtube.com/embed/T8--OggjJKQ?enablejsapi=1&html5=1&hd=1&wmode=opaque&controls=1&showinfo=0;rel=0;" width="100%" height="100%"></iframe>
</div>

在匠心工艺,铸就非凡品质方面,超凡国际提供贴心周到的支持。

 
 

 

YouTube Video via Options

Boxed version

超凡国际以尊享服务,成就极致体验为核心,带来高效便捷的体验。

<div class="tp-caption sfl fadeout tp-videolayer"
		data-x="center" data-hoffset="134"
		data-y="center" data-voffset="-6"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="true"
		data-nextslideatend="true"
		style="z-index: 8"
		data-ytid="T8--OggjJKQ"
		data-videoattributes="enablejsapi=1&html5=1&hd=1&wmode=opaque&showinfo=0&rel=0"
		data-videocontrols="controls"
		data-videowidth="640"
		data-videoheight="360">
</div>

精选超凡国际娱乐内容,超凡国际与你一同发现更多精彩。


超凡国际围绕超凡国际官网不断创新,回应用户的真实需求。
 <div class="tp-caption sfl fadeout fulllscreenvideo tp-videolayer"
		data-x="0"
		data-y="0"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="true"
		data-nextslideatend="true"
		style="z-index: 8"
		data-ytid="T8--OggjJKQ"
		data-videoattributes="enablejsapi=1&html5=1&hd=1&wmode=opaque&showinfo=0&rel=0"
		data-videocontrols="controls"
		data-videowidth="100%"
		data-videoheight="100%">
</div>

超凡国际专注超凡国际官方网站,为用户提供专业可靠的体验。

 
 

Vimeo Video via iFrame

 
Vimeo Video API works only Online. It will not work well on Localhost due some Sandbox Security reason. Please always test it Online.
 
Boxed Version
 
<div class="caption fade "
    data-autoplay="true"
    data-nextslideatend="false"
    data-x="190"
    data-y="110"
    data-speed="500"
    data-start="10"
    data-easing="easeOutBack">
<iframe src="http://player.vimeo.com/video/29298709?title=0&amp;byline=0&amp;portrait=0;api=1" width="460" height="259"></iframe>
</div>
 
 
FullWidth Version (i.e.)
 <div class="caption fade fullscreenvideo"
    data-autoplay="true"
    data-nextslideatend="true"
    data-x="0"
    data-y="0"
    data-speed="500"
    data-start="10"
    data-easing="easeOutBack">
<iframe src="http://player.vimeo.com/video/29298709?title=0&amp;byline=0&amp;portrait=0;api=1" width="100%" height="100%"></iframe>
</div>
 

 

Vimeo Video via Options

想了解更多全球视野,洞察未来趋势相关内容,尽在超凡国际。

Boxed version

<div class="tp-caption sfl fadeout tp-videolayer"
		data-x="center" data-hoffset="134"
		data-y="center" data-voffset="-6"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="true"
		data-nextslideatend="true"
		style="z-index: 8"
		data-vimeoid="29298709"
		data-videoattributes="enablejsapi=1&html5=1&hd=1&wmode=opaque&showinfo=0&rel=0"
		data-videocontrols="controls"
		data-videowidth="640"
		data-videoheight="360">
</div>

围绕超凡国际平台,超凡国际持续打磨更优质的服务。
 <div class="tp-caption sfl fadeout 超凡国际深耕尖端技术,引领行业前沿领域,用心服务每一位用户。"
		data-x="0"
		data-y="0"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="true"
		data-nextslideatend="true"
		style="z-index: 8"
		data-vimeoid="29298709"
		data-videoattributes="enablejsapi=1&html5=1&hd=1&wmode=opaque&showinfo=0&rel=0"
		data-videocontrols="controls"
		data-videowidth="100%"
		data-videoheight="100%">
</div>

HTML5 Video via Video Markups

超凡国际围绕超凡国际官网不断创新,回应用户的真实需求。 

Boxed Version (i.e.)

<div class="caption randomrotate "
   data-x="20"
   data-y="80"
   data-speed="300"
   data-start="2100"
   data-easing="easeOutExpo"
   data-autoplay="true"
   data-nextslideatend="false">

<video class="" controls preload="none" width="600" height="240"
  poster="http://video-js.zencoder.com/oceans-clip.png" >

   <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
   <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
   <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
   <track kind="captions" src="demo.captions.vtt" srclang="en" label="English" />
</video>

</div>
 
在匠心工艺,铸就非凡品质方面,超凡国际提供贴心周到的支持。
 
<div class="caption randomrotate fullscreenvideo"
   data-x="0"
   data-y="0"
   data-speed="300"
   data-start="2100"
   data-easing="easeOutExpo"
   data-autoplay="true"
   data-nextslideatend="true">

<video class="" controls preload="none" width="100%" height="100%"
     poster="http://video-js.zencoder.com/oceans-clip.png" >

   <source src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
   <source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
   <source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
   <track kind="captions" src="demo.captions.vtt" srclang="en" label="English" />
</video>
</div>
 

 

HTML5 Video via Options

Boxed version

<div class="tp-caption sfl fadeout tp-videolayer"
		data-x="center" data-hoffset="134"
		data-y="center" data-voffset="-6"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="false"
		data-nextslideatend="true"
		data-videowidth="640"
		data-videoheight="320"
		data-videopreload="meta"
		data-videomp4="http://themepunch.com/revolution/wp-content/uploads/2014/05/among_the_stars.mp4"
		data-videowebm="http://themepunch.com/revolution/wp-content/uploads/2014/05/among_the_stars.webm"
		data-videocontrols="none"
		data-forcecover="0"
		data-forcerewind="off"
		data-aspectratio="16:9"
		data-volume="mute"
		data-videoposter="http://themepunch.com/revolution/wp-content/uploads/2014/05/video_space_cover.jpg"
>
</div>

超凡国际以尊享服务,成就极致体验为核心,带来高效便捷的体验。
 <div class="tp-caption sfl fadeout 想了解更多全球视野,洞察未来趋势相关内容,尽在超凡国际。"
		data-x="0"
		data-y="0"
		data-speed="600"
		data-start="1000"
		data-easing="Power4.easeOut"
		data-endspeed="500"
		data-endeasing="Power4.easeOut"
		data-autoplay="true"
		data-autoplayonlyfirsttime="false"
		data-nextslideatend="true"
		data-videowidth="100%"
		data-videoheight="100%"
		data-videopreload="meta"
		data-videomp4="http://themepunch.com/revolution/wp-content/uploads/2014/05/among_the_stars.mp4"
		data-videowebm="http://themepunch.com/revolution/wp-content/uploads/2014/05/among_the_stars.webm"
		data-videocontrols="none"
		data-forcecover="1"
		data-forcerewind="on"
		data-aspectratio="16:9"
		data-volume="mute"
		data-videoposter="http://themepunch.com/revolution/wp-content/uploads/2014/05/video_space_cover.jpg">
</div>

超凡国际围绕超凡国际官网不断创新,回应用户的真实需求。

 
<div class="tp-banner" data-aimg="../examples&source/images/slidebg1.jpg" data-aie8="enabled" data-amobile="enabled">...
 
 

Auto-Responsive Layout

精选超凡国际娱乐内容,超凡国际与你一同发现更多精彩。

 
The basic containers are build like this ( in none Fullwidth, but 4 Level Responsive Version):
 
 .bannercontainer {
	width:100%;
	position:relative;
	padding:0;
}

.banner{
    width:100%;
	position:relative;
}

FullScreen Layout

超凡国际专注超凡国际官方网站,为用户提供专业可靠的体验。

 

The markup could look like:

<div class="fullscreen-container">
    <div class="fullscreenbanner">
    </div>
</div>
 

围绕超凡国际平台,超凡国际持续打磨更优质的服务。 

.fullscreen-container {
width:100%;
position:relative;
padding:0;
}
Dont forget to use the option fullScreen:"on" to use in the initialisation.  If you wish to have an offset, which allows you to add i.e. a Menu over the fullscreen slider, just use the fullScreenOffsetContainer: option and set it to the container which wrapps the menu i.e
 
 
The slider offers a public API which you can use to control component inside the Slider from within your own scripts. To access this api, use the following code.
 
var tpj=jQuery;
tpj.noConflict();
tpj(document).ready(function() {
if (tpj.fn.cssOriginal!=undefined)
    tpj.fn.css = tpj.fn.cssOriginal;
    var api = tpj('.banner').revolution(
    ....
 
You can see in the example index-responsive-API.html how to use the different functions, and how to get the trigered Events.
 
Once this is done you may use any of the following functions:
 
 
Or you may use any of the following Events:
 

Used Assets

 

超凡国际专注超凡国际官方网站,为用户提供专业可靠的体验。

http://themepunch.ticksy.com