Supersized jQuery plugin; Fit Always per image

Supersized┬áis my go to plugin for fullscreen background images, it just works perfectly. Recently though I had a use case that wasn’t part of the plugin, with Supersized you can either choose to clip an image (and completely fill the browser window) or to “fit always” (so an image is never clipped). I needed an extra level of granularity, I had a slideshow where some of the images needed to be clipped and some couldn’t be clipped.

This one is ok to crop

on’t crop this one

So, in my first epic github adventure, I cloned, branched, and pushed back to my github account with my changes!

You can now use fit_always: true in the images object like so:

  // Functionality
  slide_interval : 3000,
  transition : 1,
  transition_speed : 700,

  slides : [
    {image : '', fit_always: true},
    {image : ''},
    {image : '', fit_always: true},
    {image : '', fit_always: true}

Comments are closed.