I've been working with CoffeScript and JQuery. I need to create a simple animation.
I tried using delay and I didn't understand it at all, so I read a question before:
So I decided to use queues; the main problem is that just the last element of the animation is considereded although the queue has more elements inside.
I Hope you could help me :), You can find the codes below.
All the elements inside the queue (CoffeScript).
for proc in listaDeProcesos
id = proc.id
nombre = proc.nombre
idFinal = "#{id}#{nombre}"
tiempo = parseInt(proc.tejecucion)
$("#animacion").queue('chain',(next)->
$("##{idFinal}").fadeOut(tiempo,->
next()
)
)
The dequeue function call:
$("#animacion").dequeue('chain')