Skip to content

Instantly share code, notes, and snippets.

@tatarjr tatarjr/sliderAdjust.js
Last active Aug 29, 2015

Embed
What would you like to do?
// Call & init
$(document).ready(function(){
$('.ba-slider').each(function(){
var cur = $(this);
// Adjust the slider
var width = cur.width()+'px';
cur.find('.resize img').css('width', width);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.