Hi guys, I have a problem with some jquery, please see the code below. I have 2 events. What I'm trying to achieve is when the first event completely ends, then I want to trigger the second event.
First event
$("#brand div").each(function(e) { $(this).delay(600*e).fadeTo('slow',1) })
Second event
$(".b-circle-image a").each(function(ev) { $(this).delay(600*ev).fadeTo('slow',1); })
I even tried using this with status = false; but still not working.
var checkStatus = true; $("#brand div").each(function(e) {//Display segments in order $(this).delay(600*e).fadeTo('slow',1) checkStatus = false; }) if(!checkStatus==false){ $(".b-circle-image").show(); $(".b-circle-image a").each(function(ev) {//Display circle image in order $(this).delay(600*ev).fadeTo('slow',1); }) }
If anyone has any ideas about this, we will be very grateful.
source share