For support please checkout http://themepunch.ticksy.com !
This chapter will gives you general instructions on how to install the slider and setup the options. Later chapters will be more detailed if needed.
Please upload the rs-plugin folder to your server. In this folder you will find the following subfolders containing all of the items content:
You could use your own jQuery but we recommend loading it directly from the Google ressources (see later in this documentation).
You will find an example index.html and index-fullwidth.html in your downloaded zip.
Add the following lines to your HTML Head:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js>
<!-- jQuery REVOLUTION Slider --> <script type="text/javascript" src="rs-plugin/js/jquery.themepunch.plugins.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" />
<div class="banner-container"> <div class="banner">...</div> </div>
<div class="fullwidthbanner-container"> <div class="fullwidthbanner">...</div> </div>
<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>
<script type="text/javascript"> var tpj=jQuery; // MAKE JQUERY PLUGIN CONFLICTFREE tpj.noConflict(); tpj(document).ready(function() { if (tpj.fn.cssOriginal!=undefined) // CHECK IF fn.css already extended tpj.fn.css = tpj.fn.cssOriginal; tpj('.banner').revolution( { delay:9000, startheight:490, startwidth:890, hideThumbs:200, thumbWidth:100, thumbHeight:50, thumbAmount:5, navigationType:"both", navigationArrows:"nexttobullets", navigationStyle:"round", touchenabled:"on", onHoverStop:"on", navOffsetHorizontal:0, navOffsetVertical:20, hideCaptionAtLimit:0, hideAllCaptionAtLilmit:0, hideSliderAtLimit:0, stopAtSlide:-1, stopAfterLoops:-1, shadow:1, fullWidth:"off" }); </script>
The items markup uses javascript/jQuery to transform a block of HTML markup into the slider, all customization is done trough the use of HTML5 data attributes and CSS. The markup is valid for HTML5 rules and the content will be fully indexed by search engines. The general structure of markup follows this schema:
<div id="banner_container"> <div id="banner" >...</div> </div>
<div id="fullwidthbanner-container"> <div id="fullwidthbanner" >...</div> </div>
<ul> <!-- THE BOXSLIDE EFFECT EXAMPLES WITH LINK ON THE MAIN SLIDE EXAMPLE --> <li data-transition="flyin" data-slotamount="5" data-thumb="images/thumbs/regular_thumb1.jpg"> <img src="images/slides/newslide1.jpg"> <div class="caption randomrotate fadeout medium_grey" data-x="40" data-y="20" data-speed="900" data-start="1900" data-easing="easeOutBack" data-linktoslide="4">jump slide 4</div> <div class="caption randomrotate fadeout medium_grey" data-x="40" data-y="50" data-speed="900" data-start="2100" data-easing="easeOutBack" data-linktoslide="prev">prev slide</div> <div class="caption randomrotate fadeout medium_grey" data-x="40" data-y="80" data-speed="900" data-start="2100" data-easing="easeOutBack" data-linktoslide="next">next slide</div> <div class="caption lfr randomrotateout big_white" data-x="400" data-y="80" data-speed="900" data-start="1700" data-easing="easeOutBack" data-end="3300" data-endspeed="1000" data-endeasing="easeInOutBack" data-linktoslide="4">Kickstart Your Website</div> <div class="caption lfb big_orange" data-x="400" data-y="80" data-speed="1500" data-start="3000" data-easing="easeOutBack"> Some Caption Here</div> </li> ... </ul>
<img src="images/slides/coloredbg.png" data-fullwidthcentering="off"> <div class="caption coloredbg fade" data-x="0" data-y="0" data-speed="10" data-start="0" style="background-color:#ff9118; width:100%;height:100%"></div>
Each List item can include:
<li data-transition="boxslide" data-slotamount="7" data-link="http://www.google.de"> <img src="images/slides/image1.jpg" data-fullwidthcentering="off"> <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>
<li data-transition="slideup" data-slotamount="20"> <img src="images/slides/image20.jpg" > <div class="caption lfb boxshadow" data-x="70" data-y="120" data-speed="900" data-start="500" data-easing="easeOutBack"> <iframe src="http://player.vimeo.com/video/29298709?title=0&byline=0&portrait=0" width="460" height="259"></iframe> </div> </li>
In order to play FullWidth Videos, use the class "fade fullscreenvideo" in the caption where you embeded the iFrame. Use data-x="0" and data-y="0" and data-speed="500" and data-start="10" for best effect. The Width and height of the iFrame should be 100% !
In case you wish to use autoplay, just use the data-autplay="true" parameter in the div where you embeded the iFrame.
<li data-transition="slideup" data-slotamount="20"> <img src="images/slides/image20.jpg" > <div class="caption fade fullscreenvideo" 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&byline=0&portrait=0" width="100%" height="100%"></iframe> </div> </li>
Responsive means that the slider will adjust to every screen width.
.bannercontainer { padding:5px; background-color:#fff; width:890px; position:relative; margin-left:auto; margin-right:auto; } .banner{ width:890px; // MUST BE THE SAME AS IN THE OPTIONS startwidth height:490px; // MUST BE THE SAME AS IN THE OPTIONS startheight position:relative; overflow:hidden; }
@media only screen and (min-width: 768px) and (max-width: 959px) { .banner, .bannercontainer{ width:750px; height:412px;} .bannershadow {width:750px;} } @media only screen and (min-width: 480px) and (max-width: 767px) { .banner, .bannercontainer{width:470px; height:258px;} .bannershadow {width:470px;} } @media only screen and (min-width: 0px) and (max-width: 479px) { .banner, .bannercontainer{width:300px;height:165px;} .bannershadow {width:300px; margin-top:-5px;} }
Here we can give you a short calculating example. The Width of the Responsive container depending on you in the different browser views. the height can be calculated via a simple example:
new width / original width * original height. So in our Examplce (step 1.) 750 / 890 * 490 == 413px
This slider can go fullwidth too. We have added an index-fullwidth.html example for you in the zip.
Please note the basic change in the markup.
The surrounding containers are:
<div class="fullwidthbanner-container">
<div class="fullwidthbanner">...</div>
</div>
The CSS is not splitted with Media-Queries but has a basic 100% value for width:
.fullwidthbanner-container{ width:100% !important; position:relative; padding:0; max-height:450px !important; // Same value as in OPTIONS the startheight parameter overflow:hidden; }
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: