I want a container inside the page to take the whole width of the page and overlayed on everything else, when active. This is what I have currently and its not working as I want:
$(function() {
$('.main a').click( function() {
var href = $(this).attr('href');
$(href).animate({
width: [940, 'swing'],
height: [500, 'swing'],
opacity: 'toggle'
}, 500, 'linear');
return false;
});
});
http://jsbin.com/anoji4/2/edit
Thanks