Guest User

Untitled

a guest
Sep 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment