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

Slider Revolution 響應式 jQuery 滑桿


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

实时体育数据 数据来源:竞彩网tianhai

⚽ 足球实时 (10)

主队比分客队联赛时间(北京)
城市SC1:0AMSG FCUSL乙級聯賽09:00
獨立青年隊1:1基多大學體育聯盟厄瓜多盃01:00
萊克蘭聯隊1:0邁阿密市足球俱樂部USL乙級聯賽07:00
新澤西中部皇家隊0:2西切斯特聯隊USL乙級聯賽07:00
戴維斯傳承隊2:3舊金山城市足球俱樂部USL乙級聯賽08:00
RKC第三海岸隊3:1芝加哥城市荷蘭獅子隊USL乙級聯賽08:00
德拉瓦州足球俱樂部2:1老鷹足球俱樂部USL乙級聯賽05:00
小石城遊騎兵隊1:0曼菲斯足球俱樂部USL乙級聯賽08:00
波托西皇家隊2:1ABB玻利維亞甲級聯賽08:00
博卡青年1:0巴拉納競技俱樂部友誼賽08:00

🏀 篮球实时 (10)

主队比分客队联赛时间(北京)
渥太華黑夾克隊104:77蒙特婁聯盟隊加拿大精英籃球聯賽07:30
多倫多節奏隊75:83金州女武神隊WNBA07:00
洛杉磯火花隊印第安納狂熱隊WNBA10:00
坎特伯雷公羊隊塔拉納基空氣隊新西蘭國家籃球聯賽15:00
基爾西斯眼鏡蛇隊努納瓦丁幽靈隊NBL1南區18:00
墨爾本老虎隊桑德林厄姆軍刀隊NBL1南區18:30
佩里湖鷹隊羅金漢火焰隊NBL1西區20:30
東珀斯鷹隊湖濱閃電隊NBL1西區20:30
河內水牛隊胡志明市飛翼隊越南籃球協會20:30
紐奧良鵜鶘明尼蘇達灰狼NBA夏季聯賽03:30

⚾ 棒球实时 (10)

主队比分客队联赛时间(北京)
舊金山巨人多倫多藍鳥美國職棒大聯盟03:45
伍斯特紅襪5:4羅徹斯特紅翼國際聯盟07:00
韋拉克魯斯之鷹瓦哈卡戰士隊墨西哥棒球聯盟09:00
克雷塔羅陰謀家隊金塔納羅奧老虎隊墨西哥棒球聯盟09:00
奇瓦瓦金礦隊聯合拉古納棉農隊墨西哥棒球聯盟09:00
兩拉雷多斯貓頭鷹隊1:1蒙克洛瓦鋼鐵人隊墨西哥棒球聯盟08:30
德州遊騎兵洛杉磯天使美國職棒大聯盟08:05
諾福克潮汐隊1:2雪城大都會國際聯盟06:35
辛辛那提紅人7:4費城費城人美國職棒大聯盟07:10
明尼蘇達雙城3:3克里夫蘭守護者美國職棒大聯盟07:40

📅 今日赛程 (20)

主队比分客队联赛时间(北京)
薩克拉門托共和國羅德島足球俱樂部美國USL錦標賽10:30
馬爾杜市隊弗洛拉塔林U21愛沙尼亞乙級聯賽00:00
中西部聯隊馬科姆聯足球俱樂部USL乙級聯賽07:00
羅徹斯特足球俱樂部0:0聖克魯斯傳奇隊USL乙級聯賽08:00
戴維斯傳承隊0:2舊金山城市足球俱樂部USL乙級聯賽08:00
項目51O馬林FC傳奇隊USL乙級聯賽08:00
休斯頓足球俱樂部AC休斯頓南區USL乙級聯賽08:00
傑克遜轟炸隊哈蒂斯堡足球俱樂部USL乙級聯賽08:00
密西西比布里拉隊路易斯安那克魯隊USL乙級聯賽08:00
蒙哥馬利聯隊哥倫布聯隊USL乙級聯賽08:00
河光隊洛克福德猛禽隊USL乙級聯賽08:00
RKC第三海岸隊2:1芝加哥城市荷蘭獅子隊USL乙級聯賽08:00
小石城遊騎兵隊0:0曼菲斯足球俱樂部USL乙級聯賽08:00
聖安東尼奧FC 2隊雙城巨嘴鳥隊USL乙級聯賽08:30
西德州隊拉伯克鬥牛士隊USL乙級聯賽08:30
城市SCAMSG FCUSL乙級聯賽09:00
拉雷多熱浪隊GFI學院USL乙級聯賽09:00
大腳怪足球俱樂部巴拉德足球俱樂部USL乙級聯賽10:00
文圖拉縣融合隊明星足球俱樂部USL乙級聯賽10:00
代頓荷蘭獅子隊西弗吉尼亞聯隊USL乙級聯賽06:00
数据快照 · 截至 2026-07-09 09:35(北京时间)· 实时数据在页面加载后自动刷新

本章將為您提供有關如何安裝滑桿和設定選項的一般說明。如有需要,後續章節將更詳細說明。

 

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

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

您可以使用自己的 jQuery,但我們建議直接從 Google 資源載入 (稍後在本文件中)。

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

 

實施 jQuery

將以下幾行新增到您的 HTML 標頭: 

<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>
Banner-container 可以根據您希望使用的佈局而具有不同的樣式。 
 
自動響應式樣式 

此樣式可讓包覆容器決定您的滑桿有多大 (寬度)。高度將根據滑桿寬度自動計算。

將此放入您的 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」,以及 naigationVAlign:「top」、「center」、「bottom」
     
  • navigationHOffset navigationVOffset

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

    導航箭頭的垂直和水平對齊 (左右獨立!) 可能的值 navigationHAlign:「left」、「center」、「right」,以及 naigationVAlign:「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- 每個列表項目的值。
 
過場動畫效果
Links (Full Slide Links)
Thumbnail
Title

 

The Main Image


Each Slide (<li> </li>) MUST include a main image which is added as a simple <img> tag at the first level. It can be a Simpe image, a colored or transparent image, or dummy image as lazy load version.

Simple Image
<img src="images/slides/slide13.jpg" >
Colored Background Instead of Image
<img src="images/slides/transparent.png" style="background-color:#56e34a" >
Lazy Loaded Image
<img src="images/slides/dummy.webp" data-lazyload="images/slides/slide13.jpg">
Tiled Image
<img src="images/slides/slide13.jpg" data-bgrepeat="repeat" data-bgfit="normal" data-bgposition="center center">
Fitting Image
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="contain" data-bgposition="center center">
Covering Image
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="cover" data-bgposition="center center">
Bottom Right Aligned Covering Image
<img src="images/slides/slide13.jpg" data-bgrepeat="no-repeat" data-bgfit="cover" data-bgposition="right bottom">
Ken Burns Animation on Image
<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">
 
Image Attributes

The Captions / Layers

Each <li> (slide) can include unlimited amount of Captions. Caption are simple html markups with iframe, image, heading , paragraph and any other tags.  Each Caption must be wrapped via a <div class="caption"></div>.

Each Caption has some special classes and some data- attributes, to set animation type, position, speed, easings etc.

Caption Classes
  • the "caption" class

    It is the Wrapping main Class which is a MUST.  Each Caption need to be defined like this, other way the Slider Plugin can not identifikate the Caption container
     
  • Styling Captions (like "big_white", "big_orange", "medium_grey" etc...)

    These are Styling classes created in the settings.css  You can add unlimited amount of Styles in your own css file, to style your captions at the top level already
     
  • 視差設定 (like "rs-parallaxlevel-1", "rs-parallaxlevel-2", "rs-parallaxlevel-3" etc...)

    You can define a Parallax Level for each Layer, which will allow the Layer to move based on scroll or mouse movements (if option activated). Based on the Class the Strength of the offset can be defined.
     
  • Animation Classes

    Animation Classes defined the start / end animations on Captions.  

    Incoming animation Classes:

    sft - Short from Top
    sfb - Short from Bottom
    sfr - Short from Right
    sfl - Short from Left
    lft - Long from Top
    lfb - Long from Bottom
    lfr - Long from Right
    lfl - Long from Left
    skewfromleft - Skew from Left
    skewfromright - Skew from Right
    skewfromleftshort - Skew Short from Left
    skewfromrightshort - Skew Short from Right
    fade - fading
    randomrotate- Fade in, Rotate from a Random position and Degree
    customin - Custom Incoming Animation - see below all data settings

    Outgoing animation Classes:

    stt - Short to Top
    stb - Short to Bottom
    str - Short to Right
    stl - Short to Left
    ltt - Long to Top
    ltb - Long to Bottom
    ltr - Long to Right
    ltl - Long to Left
    skewtoleft - Skew to Left
    skewtoright - Skew to Right
    skewtoleftshort - Skew Short to Left
    skewtorightshort - Skew Short to Right
    fadeout - fading
    randomrotateout竞彩网tianhai围绕足球竞猜APP不断创新,回应用户的真实需求。
    customout - Custom Outgoing Animation - see below all data settings

    Custom Incoming / OutGoing settings:

    data-customin="rotationX:0;rotationY:0;rotationZ:0...." - How the Caption is Transformed before animation starts. All value will be animated to 0 or 1 to remove all transoformation of the Caption.

    data-customout="rotationX:0;rotationY:0;rotationZ:0...."- The End Transformed Style after the animation finnished. All value will be animated from 0 or 1 to the selected transformation.

    Custom Animation (in and out) Parameters set via data-customin and data-customout within the caption div. Parameter should be closed with ";"

    rotationX:0;rotationY:0;rotationZ:0 - value between -920 and +920. Rotation Direction set via X,Y,Z, Can be mixed
    scaleX:1;scaleY:1 - value between 0.00 - 10.00 Scale width and height. 1 == 100%
    skewX:1;skewY:1 - value between 0.00 - 10.00 Skew inVertical and/or horizontal direction 0 = no skew
    opacity:1 - value between 0.00 - 1.00 Transparencity
    transformOrigin:center center - Sets the origin around which all transforms occur. By default, it is in the center of the element ("50% 50%"). You can define the values using the keywords "top", "left", "right", or "bottom" or you can use percentages (bottom right corner would be "100% 100%") or pixels.
    Values:left top / left center / left bottom / center top / center center / center bottom / right top / right center / right bottom or x% y%
    transformPerspective:300 - To get your elements to have a true 3D visual perspective applied, you must either set the “perspective” property of the parent element or set the special “transformPerspective” of the element itself (common values range from around 200 to 1000, the lower the number the stronger the perspective distortion).
    x:0;y:0; - the x / y distance of the element in px. i.e. x:-50px means vertical left 50px
Caption data- settings

 

 
Special Classes within the Caption container
Loop Animations Within the Layers

To Define Loop animations, everything which comes inside the Layer need to be wrapped with a div container where you can set the different Loop Animation Details

 

 

You can add now Static Layers to your Slider. Static Layers are defiend outside the Layers (since they are independent of any other elements and slides).

You will need to define the Start and End Slide and as always the start and end time where the Layer becomes visible, or hides again.

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>
	  

 

The slider can play Vimeo, YouTube and HTML5 (videoJs) Videos, in boxed and "FullSlide" size. Via the Embeded API's the Slider will be paused, and restarted from the VideoPlayers.  To use the Video Files in Slider see the following instructions.

Each Video file has the same data- options like:

 

YouTube Video via iFrame

Boxed version

YouTube Video will be added within a caption due an iframe. The Following example shows an iFrame embeded YouTube Video in a caption (460px X 259px), i.e.:

<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>

You may need to use the origina=http://yourdomain or origin=https://yourdomain for YT Api issues !


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>

You may need to use the origin=http://yourdomain or origin=https://yourdomain for YT Api issues !

 
 

 

YouTube Video via Options

Boxed version

YouTube Video will be added via Options. The Following example shows an embeded YouTube Video which is loaded only on Demand. in a caption (460px X 259px), i.e.:

<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>

围绕中国体育彩票网,竞彩网tianhai持续打磨更优质的服务。


竞彩网tianhai专注世界杯在线竞彩平台,为用户提供专业可靠的体验。
 <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>

竞彩网tianhai深耕覆盖全球热门体育赛事,资讯全面及时领域,用心服务每一位用户。

 
 

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

Vimeo Video API works only Online. It will not work well on Localhost due some Sandbox Security reason. Please always test it Online. Vimeo Video will be added via Options. The Following example shows an embeded Vimeo Video which is loaded only on Demand in a Layer (460px X 259px), i.e.:

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>

在专业团队深度解读,洞察比赛趋势方面,竞彩网tianhai提供贴心周到的支持。
 <div class="tp-caption sfl fadeout 竞彩网tianhai以数据整合分析,助力用户理性决策为核心,带来高效便捷的体验。"
		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

The HTML5 Files are only loaded if the html5 video markup exist. 

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>
 
想了解更多清晰内容结构,优化阅读体验相关内容,尽在竞彩网tianhai。
 
<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>

竞彩网tianhai围绕足球竞猜APP不断创新,回应用户的真实需求。
 <div class="tp-caption sfl fadeout 精选世界杯在线竞彩平台内容,竞彩网tianhai与你一同发现更多精彩。"
		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>

In case you wish to show a single image instead of the Slider on Slower Browsers / mobiles, please simple use the aimg and aie8, amobile data attributes as shown here

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

Auto-Responsive Layout

Responsive means that the slider will adjust to every screen width. The Sourrounding Container Size will define the Max width of the Slider. The Height will be auto calculated.

 
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

You can use the Slider also in FullScreen mode. It will need to have the possiblity to use the full width of the screen, means do not wrap it in any boxed container.  For Fullscreen simple use the following markups and styles:

 

The markup could look like:

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

The Style has 100% width and height simple. 

.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

 

If you face problems with the installation or customization of our product please do not hesitate to contact us via our support ticket system:

http://themepunch.ticksy.com