Advertisement
robotmargie

init AOS

Dec 11th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. INIT AOS
  2.  
  3. ----// Refs
  4. <link rel="stylesheet" href="swfiles/body/aos.css">
  5. <script src="swfiles/body/aos.js"></script>
  6.  
  7. ----// JS
  8. window.addEventListener('load', e => {
  9.  
  10. const deviceWidth = window.innerWidth;
  11.  
  12. AOS.init({
  13. disable: deviceWidth < 991,
  14. startEvent: 'DOMContentLoaded',
  15. initClassName: 'aos-init',
  16. animatedClassName: 'aos-animate',
  17. useClassNames: false,
  18. disableMutationObserver: false,
  19. debounceDelay: 50,
  20. throttleDelay: 99
  21. });
  22.  
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement