javascript - How to make a DIV pop out from nowhere Jquery? -
so have game want show 2 numbers. want these numbers come out nowhere, perhaps button of screen , travel , disappear.
i looking through jquery website, couldn't find similar.
heres example wrote:
$(document).ready(function() { $("button").click(function(){ $('.count').html(parseint($('.count').html())+1); //allow time animation finish before next click $('button').hide(); window.settimeout(function(){$('button').show();},3000); $("div").css("bottom","-20px"); $("div").animate({bottom: '1200px'}, 2000); }) });
Comments
Post a Comment