Work around for JQuery easing for Internet Explorer

Once again, I am using the easing funtion in the JQuery library to create some really cool animations this time for Genesis Motors.

I have been using this library for quite a while now for a few online projects.

Here are a list of some of them:

The latest project Genesis Motors requires that content be allowed to slide in and slide off stage.

Sample code


$(“#side_bar_<?php echo $page->ID; ?>”).click(function(event){
menu_animation_active = true;

new_menu_slider_id = ‘#’+<?php echo $page->ID; ?>+”_banner” ;

$(curr_content).animate({left:’-1200px’},600, function(){


// Wait until the above has finished, then do the rest
curr_content = new_menu_slider_id;
$(curr_content ).css(“left”,”1200px”);
$(curr_content ).show();
$(curr_content ).animate({left:’0′},{duration:500});

menu_animation_active = false;



Works fine with in firefox but not Internet Explore.

The problem is that when the current content slides out, even when the content is in the area it is not suppose to show, it still remains visible.

Trying hard to recall what I did the other time to solve the porblem I finally remembered. The trick to work around this is to add the following styling to the container that is holding all the sliding contents as well.


Once you have added these two styles to the container, the Internet Explorer will know that this container is on the same level as the sliding contents within hence will restrict the contents from floating on an unattached z-index above the main layer.