12 Oct

Awesome jquery accordion

06 Oct

Chosen: make select boxes better

24 Aug

Responsive jQuery Slider

23 Aug

jQuery Image Zoom Tour by Codrops

15 Aug

Stop WordPress from loading jQuery automatically

if( !is_admin()){
wp_deregister_script('jquery');
}

Sometimes when coding our own themes we tend to include jQuery by ourselves, and this could generate conflicts with certain plugins. By adding this bit of code to your theme’s functions.php file you’ll be pretty much telling WordPress not to load jQuery.

11 Aug

Booklet: a page flip jquery plugin

04 Aug

Fullscreen grid portfolio

28 Jul

Get fluid images to keep their aspect ratio using jQuery

$(window).bind("load resize", function() {
 var fluid = $(".container").width();   
 $(".container img").width(fluid).height("auto");   
});

This bit of code is specially useful when working with fluid layouts, where container’s width vary depending on viewers screen resolution. The key here is ‘.height(“auto”)’. Without it, we would get the same result as if we used “width: 100%” on css. Keep reading