Advertisement
flavius123

javaimportante1

Jul 4th, 2022
865
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const navSlide = () => {
  2.   const burger = document.querySelector('.burger');
  3.   const nav = document.querySelector('.nav-links');
  4.   //Fazendo aparecer os itens
  5.   const navLinks = document.querySelectorAll('.nav-links li');
  6.  
  7.   //Fazendo o clique do menu funcionar
  8.   burger.addEventListener('click', () => {
  9.     nav.classList.toggle('nav-active');
  10.  
  11.     //Animações links
  12.     navLinks.forEach((link, index) => {
  13.       if (link.style.animation) {
  14.         link.style.animation = '';
  15.       } else {
  16.         link.style.animation = `navlinkFade 0.5s ease forwards ${index/7+1.5}s`
  17.  
  18.       }
  19.     });
  20.     //Transformando em X
  21.     burger.classList.toggle('toggle');
  22.  
  23.  
  24.   });
  25.  
  26.  
  27. }
  28.  
  29. navSlide();
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. (function($){
  37.   new WOW().init();
  38. })(jQuery);
  39.  
  40.  
  41. function sendMail() {
  42.     var link = "mailto:flaviohenriquegallo@gmail.com"
  43.     + "?cc=flaviohenriquegallo@gmail.com"
  44.     + "&subject=" + escape("This is my subject")
  45.     + "&body=" + escape(document.getElementById('myText').value)
  46.     ;
  47.    
  48.     window.location.href = link;
  49.     }
  50.  
  51.  
  52.     const navSlide = () => {
  53.         const burger = document.querySelector('.burger');
  54.         const nav = document.querySelector('.nav-links');
  55.         //Fazendo aparecer os itens
  56.         const navLinks = document.querySelectorAll('.nav-links li');
  57.    
  58.         //Fazendo o clique do menu funcionar
  59.         burger.addEventListener('click', () => {
  60.           nav.classList.toggle('nav-active');
  61.    
  62.           //Animações links
  63.           navLinks.forEach((link, index) => {
  64.             if (link.style.animation) {
  65.               link.style.animation = '';
  66.             } else {
  67.               link.style.animation = `navlinkFade 0.5s ease forwards ${index/7+1.5}s`
  68.    
  69.             }
  70.           });
  71.           //Transformando em X
  72.           burger.classList.toggle('toggle');
  73.    
  74.    
  75.         });
  76.    
  77.    
  78.       }
  79.    
  80.       navSlide();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement