Reputation: 10898
How can i resize images in this example ? I want the images resize with the proper aspect ratio when I resize the window.
Should this be done with jquery or with html/css?
Upvotes: 1
Views: 1697
Reputation: 2201
A Simple search on google provides the answer.
Use JQuery Vegas to have full size fading. http://vegas.jaysalvat.com/
Use Supersized to have full size sliding. http://buildinternet.com/project/supersized/
Upvotes: 0
Reputation: 43810
Since you are using jquery you can use the resize method
$(window).resize(function() {
// check the window width and resize your images
var width = $(window).width();
});
Upvotes: 2