Simplest Background Image Slideshow Plugin With jQuery - Full Clip

File Size: 4.8 KB
Views Total: 13641
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simplest Background Image Slideshow Plugin With jQuery - Full Clip

Full Clip is an ultra-light (1kb minified) jQuery plugin used for creating a responsive, automatic, full-window, cross-fading background image slideshow using CSS3 transition, background-size and background-position properties.

How to use it:

1. Download and include the fullclip.js script along with the jQuery library right before the closing body tag.

<script src="//code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="src/fullclip.js"></script>

2. Create a container for the background slideshow.

<div class="fullBackground"></div>

3. Make the background images full responsive and auto resiz / re-position according to the screen size.

.fullBackground {
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

4. Call the function on the slideshow container and define an array of background images to showcase.

$('.fullBackground').fullClip({
  images: ['1.jpg', '2.jpg', '3.jpg']
});

5. Override the default animation speed and transition delay.

$('.fullBackground').fullClip({
  transitionTime: 1000,
  wait: 3000
});

This awesome jQuery plugin is developed by bdimitrovski. For more Advanced Usages, please check the demo page or visit the official website.