daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // EFECTOS PERSONALIZADOS
  2.  
  3.  
  4. // Ejecutar cuando el html este cargado
  5. $(document).ready(function(){
  6.     efectos();
  7. });
  8.  
  9.  
  10. function efectos(){
  11.     var caja = $('#caja');
  12.  
  13.     $('#mostrar').hide('fast')
  14.  
  15.     //Mostrar y Ocultar Caja
  16.     $('#activar').click(function(){
  17.         caja.fadeToggle('fast');
  18.     });
  19.  
  20.     //Efectos personalizados
  21.     $('#animar').click(function(){
  22.         caja.animate({
  23.                 marginLeft: '500px',
  24.                 fontSize:   '40px',
  25.                 height:'120px'
  26.         },'fast')
  27.             .animate({
  28.                 marginTop: '500px',
  29.  
  30.         },'fast')
  31.             .animate({
  32.                 marginLeft: '0px',
  33.  
  34.         },'fast')
  35.             .animate({
  36.                 marginTop: '0px',
  37.         },'fast');
  38.     });
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top