views:

20

answers:

2

I need an image slider which resizes the images only if its needed (the size of the image is bigger than the div containing the slider).

I've tried with AnythingSlider, but when I set the width and height to the div containing the slider, the images that are smaller than the div are stretched. I don't want them to be stretched.

+1  A: 

You could just do a check in javascript/jquery to see what the size of the image is. If it's bigger than the desired dimension you can just scale it down.

Aaron Hathaway
Yes, that could be a solution, but I just wanted to know if there is an JS slider that already has the ability to do this. Thanks :)
ClaudioA