"Bye Bye Form!"
Bootstrap 3.3.0 Snippet by maykolrg

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css"> <div class="container"> <div class="row"> <form class="form-horizontal" id="contacto"> <div class="row form-group"> <div class="col-sm-6"> <input type="text" class="form-control" placeholder="Nombre Completo" id="nombre"> </div> <div class="col-sm-6"> <input type="text" class="form-control" placeholder="Correo Electronico" id="email"> </div> </div> <div class="row form-group"> <div class="col-md-12"> <textarea class="form-control" rows="3" placeholder="Escribe aqui tu mensaje" id="mensaje"></textarea> </div> </div> <div class="text-center"> <button type="button" class="btn btn-success" id="sent" data-loading-text="Enviando..."><i class="fa fa-send"></i> Enviar Mensaje</button> <button type="button" id="address" class="btn btn-default"><i class="fa fa-undo"></i> Volver</button> </div> </form> </div> </div> <script> $.fn.extend({ animateCss: function(animationName, callback) { var animationEnd = (function(el) { var animations = { animation: 'animationend', OAnimation: 'oAnimationEnd', MozAnimation: 'mozAnimationEnd', WebkitAnimation: 'webkitAnimationEnd', }; for (var t in animations) { if (el.style[t] !== undefined) { return animations[t]; } } })(document.createElement('div')); this.addClass('animated ' + animationName).one(animationEnd, function() { $(this).removeClass('animated ' + animationName); if (typeof callback === 'function') callback(); }); return this; }, }); $('#sent').click(function(){ $('#contacto').animateCss('zoomOutUp', function() { alert('Holaaaa') }); }); </script>
@import url("https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css");
*/

Related: See More


Questions / Comments: