This article will show you how to setup the PaintBrush Addon for jQuery Slider Revolution
Important Note:
1. To get started with the Particles Add-On, unzip and upload the "paintbrush-addon" folder into your production site.
Note:
2. Next, the PaintBrush stylesheet and script should be placed below all other scripts on the page.
<!-- PAINTBRUSH STYLESHEET -->
<link rel="stylesheet" type="text/css" href="css/revolution.addon.paintbrush.css" />
<!-- PAINTBRUSH SCRIPT -->
<script type="text/javascript" src="js/revolution.addon.paintbrush.min.js"></script>
3. Next, in your slider's main settings script, you'll need to call the PaintBrush Add-On as shown in the following example.
var slider = jQuery('#rev_slider_1').show().revolution({
/* **************************** */
/* REGULAR SLIDER SETTINGS HERE */
/* **************************** */
});
/*
Instantiate the PaintBrush AddOn
Args: slider reference (assigned above)
*/
RevSliderPaintBrush(slider);
4. Next, setup your Slides with your PaintBrush settings and images:
- true
- false
- "round"
- "square"
- "butt"
- true
- false
- false
- true
- false
- true
- true
- false
- false
- true
<!-- BEGIN PAINTBRUSH SLIDE -->
<li data-transition="fade"
<!-- paintbrush settings and image urls -->
data-revaddonpaintbrush='{
"size":200,
"origsize":200,
"blurAmount":10,
"fadetime":600,
"image":"assets/images.jpg",
"edgefix":10,
"fixedges":true,
"style":"round",
"blur":true,
"scaleblur":false,
"responsive":false,
"disappear":true,
"carousel":false
}'data-revaddonpaintbrushedges="1">
<!-- Load the background image file for PaintBrush Slides -->
<img src="assets/paintbrush_bg2.jpg" class="rev-slidebg">
<!-- ***************** -->
<!-- SLIDE LAYERS HERE -->
<!-- ***************** -->
</li><!-- END PAINTBRUSH SLIDE -->