So i'm pretty new to coding, yet I managed to write this jquery animation set for an LP, I am trying to use this hand to gesture the client with a wiggle from side to side, and when he clicks on the hand, the div disappears (forever.)
Since atm my rotate trials didn't work out, I just used a fade in / out for now.
I want it to work properly after the other divs disappear.
I thought it had to do something with setInterval()
so I searched on that too with no success.
Can you show me how to add code that would make the hand wiggle/rotate and then disappear after clicked on?
Many thanks guys.
My HTML
<div class="box">
<div class="row headsup">
<h1>This is a page</h1>
<p>Press F11 For FullScreen</p>
<button id="closer" style="margin-bottom: 0px;" type="submit" class="">press here to close this window</button>
</div>
</div>
<div class="row headsup">
<h1 class="wiggle">Just Wiggle It Around</h1>
</div>
<div class="mc"><img style="" src="img/cursurredhand100x100.png"></div>
My Javascript
$("#closer").click(function(){
$(".box").delay(300).hide("slow", function (){
$(".howto").css({
display:'block',
'z-index': '100'
});
});
$(".wiggle").delay(2500).hide("slow");
$(".howto").click(function(){
$(".howto").slideToggle( "slow", function() {
$("#LG").fadeIn();
});
});
});
function fadeIn() {
jQuery(".mc").fadeIn(900);
fadeOut();
}
function fadeOut() {
jQuery(".mc").fadeOut(400);
fadeIn();
}
fadeOut();