Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setMenu() {
- if (this.$overlay.length) {
- gsap.set(this.$overlay, {
- autoAlpha: 0,
- display: 'none'
- });
- }
- if (this.$submenu.length) {
- gsap.set(this.$submenu, {
- autoAlpha: 0
- });
- }
- if (this.$submenuButton.length) {
- gsap.set(this.$submenuButton, {
- autoAlpha: 0
- });
- }
- this.$submenu.removeClass(this.openClass);
- this.$header.removeClass(this.openClass);
- this.$burger.removeClass(this.burgerOpenClass);
- if (this.$menuLinks.length) {
- gsap.effects.hideLines(this.$menuLinks, {
- autoAlpha: 1,
- y: '-100%',
- duration: 0,
- });
- }
- if (this.$submenuLinks.length) {
- gsap.effects.hideLines(this.$submenuLinks, {
- autoAlpha: 1,
- y: '-100%',
- duration: 0,
- });
- }
- if (this.$overlayWidgets.length) {
- gsap.effects.hideLines(this.$overlayWidgets, {
- autoAlpha: 1,
- y: this._isMediumScreen() ? '-100%' : '100%',
- duration: 0
- });
- }
- if (this.$curtain.length) {
- gsap.set(this.$curtain, {
- display: 'none'
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement