Advertisement
ArtSemkin

Untitled

May 2nd, 2020
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   setMenu() {
  2.  
  3.     if (this.$overlay.length) {
  4.       gsap.set(this.$overlay, {
  5.         autoAlpha: 0,
  6.         display: 'none'
  7.       });
  8.     }
  9.     if (this.$submenu.length) {
  10.       gsap.set(this.$submenu, {
  11.         autoAlpha: 0
  12.       });
  13.     }
  14.  
  15.     if (this.$submenuButton.length) {
  16.       gsap.set(this.$submenuButton, {
  17.         autoAlpha: 0
  18.       });
  19.     }
  20.  
  21.     this.$submenu.removeClass(this.openClass);
  22.     this.$header.removeClass(this.openClass);
  23.     this.$burger.removeClass(this.burgerOpenClass);
  24.  
  25.     if (this.$menuLinks.length) {
  26.       gsap.effects.hideLines(this.$menuLinks, {
  27.         autoAlpha: 1,
  28.         y: '-100%',
  29.         duration: 0,
  30.       });
  31.     }
  32.  
  33.     if (this.$submenuLinks.length) {
  34.       gsap.effects.hideLines(this.$submenuLinks, {
  35.         autoAlpha: 1,
  36.         y: '-100%',
  37.         duration: 0,
  38.       });
  39.     }
  40.  
  41.     if (this.$overlayWidgets.length) {
  42.       gsap.effects.hideLines(this.$overlayWidgets, {
  43.         autoAlpha: 1,
  44.         y: this._isMediumScreen() ? '-100%' : '100%',
  45.         duration: 0
  46.       });
  47.     }
  48.  
  49.     if (this.$curtain.length) {
  50.       gsap.set(this.$curtain, {
  51.         display: 'none'
  52.       });
  53.     }
  54.  
  55.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement