Last active
May 2, 2016 17:38
-
-
Save juanlopezdev/15ffb1ce2f4e2e025305 to your computer and use it in GitHub Desktop.
Remover elemento con efecto "desaparecer" en Jquery / Remove element effect "FadeOut" into Jquery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Extender método / Extend | |
| */ | |
| $(function() { | |
| $.fn.fadeOutRemove = function(time) { | |
| $(this).fadeOut(time, function() { | |
| $(this).remove(); | |
| }); | |
| }; | |
| } | |
| /* | |
| * Ejemplo / Example | |
| */ | |
| $('#element').fadeOutRemove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment