Skip to main content

Bug Tracker

Side navigation

Ticket #3120: test-3120.html

File test-3120.html, 1.5 KB (added by dmethvin, August 12, 2010 12:20AM UTC)
<!DOCTYPE html> 
<script src="" type="text/javascript"></script>
	<script type="text/javascript">
		function addListItem(animate) {
			var $li = $("<li></li>").text("Item " + ($("ol").children().length+1));
			var $a = $("<a></a>").text("remove").attr("href", "#").click(function() {
				$(this).parent("li").slideUp(1000, function() {
			if(animate) $li.slideDown(1000); else $;
		$(document).ready(function() {
	<h1>jQuery Slide Effect Anomaly with IE6/IE7</h1>
	<h3>Internet Explorer 6 &amp; 7</h3>
	When adding or removing an item, the slideUp and slideDown effects slide in one direction for 50% of the slide, and in the other direction for the rest.
	Note the abruptness of the effect, especially when removing an item. The same effect can be observed with show() and hide(), but is easier to
	demonstrate with the slide.
	<h3>Firefox 3, Safari 3</h3>
	The slide effects behave how you'd expect them to, completing a full slide up/down in a single direction. As far as I know, this is also how
	it works in all browsers except for IE.
	<p><a href="#" id="additem" onclick="addListItem(true)">add</a></p>	
	<ol id="list"></ol>
	<p><em>Animating speed has been set slow to demonstrate the effect.</em></p>

Download in other formats:

Original Format