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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -