id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blocking	blockedby
11672	delay(0) still delays	torsten@…	torsten@allthingswordpress.de	"I'm trying to use a configurable delay value to control the elasticity of animating an element of top of another:

{{{
var elasticity = 25; // how long the animation of the second element should be delayed to create the rubber band effect
$('.slide_background').animate({ 'top': '+=50px' });
$('.slide_content_element').delay(elasticity).animate({ 'top': '+=50px' });
}}}

The idea is to be able to configure the above snippet to be elastic or concrete depending on the value of 'elasticity'. Supposedly, a value of 0 should result in absolutely no delay. That is

{{{
var elasticity = 0;
$('.slide_background').animate({ 'top': '+=50px' });
$('.slide_content_element').delay(elasticity).animate({ 'top': '+=50px' });
}}}

should be the same like starting the second animation without any delay:
{{{
$('.slide_background').animate({ 'top': '+=50px' });
$('.slide_content_element').animate({ 'top': '+=50px' });
}}}

But still, even with a value of 0, delay() adds a visible delay. Any ideas?
"	bug	closed	undecided	None	unfiled	1.7.2	plugin				
