javascript - JQuery: How do I trigger two animations? -
i wondering if fadeout slide flash notification 1 works fadeout. can do?
$(document).ready(function() { settimeout(function(){ $('#flash_wrapper').fadeout("slow", function() { $(this).remove(); }) }, 4500); }); </script>
i want able use slideup
, fadeout
@ same time. how do that? still dont know how these work
you can use jquery's .animate() animate css properties:
$('#flash_wrapper').animate({ height: 0, // slideup opacity: 0 // fadeout }, 4500, // speed function () { // called when animation complete $(this).remove(); });
Comments
Post a Comment