I have already created a div that slides up from the bottom of the screen on a timer, and closes on a timer, and it works fine, but it needs to be tweeked, so that if they click ‘YES’ in the first slider, that div slides down, for another to appear, just not sure how on click of yes to slide the one down and make the other appear.
#cristalcheck_app{background-color:rgba(34, 190, 239, 0.8);height:100px;line-height:10px;width:100%;position:fixed;bottom:-100px;padding:10px; border-top:#fff dotted 1px;}
#cristalcheck_app p{line-height:75px; text-align:center; font-size:39px; color:#111;}
#cristalcheck_app_link{background-color:rgba(234, 84, 158, 0.8);height:100px;line-height:10px;width:100%;position:fixed;bottom:-100px;padding:10px; border-top:#fff dotted 1px;}
#cristalcheck_app_link p{line-height:75px; text-align:center; font-size:25px; color:#111;}
<div id="cristalcheck_app">
<p>ARE YOU A HOTELIER? YES | NO</p>
</div>
<div id="cristalcheck_app_link">
<p>Click here to view our new self-assessment option - <a href="http://www.cristalcheck.com" target="_blank">GO</a> </p>
</div>
So far have only the one script that deals with the first div with the YES \ NO question
On click of the YES, it might be the case that it is working, just there a huge delay which possibly relates to delay(55500), before the second div appears, so there a conflict there. Ideally when you click YES the first slide slides down right away and then other appears after it. Cant get that to work, and then if they click NO ideally the first one just slides down straight away too, and then they both have a strict amount of time on the page where by they slide down given a certain amount of time.
I forgot to think about the second div needing to animate itself back down again and the code below is all good, up to the last function where i’m asking for the div to delay 7500 and slide down, its not doing it, i cant see what the problem is sorry.