Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Power2 } from 'gsap';
// Toolbar
export const TOOLBAR_HEIGHT = 40;
export const TOOLBAR_BUTTON_WIDTH = 36;
// Tabs
export const TAB_MAX_WIDTH = 200;
export const TAB_MIN_WIDTH = 72;
export const TAB_PINNED_WIDTH = 32;
export const TAB_ANIMATION_DURATION = 0.3;
export const TAB_ANIMATION_EASING = Power2.easeOut;
export const TABS_PADDING = 2;
// Widths
export const WINDOWS_BUTTON_WIDTH = 45;
export const MENU_WIDTH = 300;
export const MENU_SPACE = 96;
export const MENU_CONTENT_MAX_WIDTH = 640;
// Workspaces
export const WORKSPACE_FOLDER_SIZE = 96;
export const WORKSPACE_ICON_SIZE = 16;
export const WORKSPACE_MAX_ICONS_COUNT = 9;
// Address bar
export const ADDRESS_BAR_HEIGHT = 30;
landed = (perfection) => {
if (!Settings.circleEnabled) return;
this.circle.visible = true;
const duration = 0.7;
const scale = 5 + 15 * perfection; // randomRange(10, 20);
TweenMax.to(this.circle.scale, duration, {
x: scale,
y: scale,
ease: Cubic.easeOut,
});
TweenMax.to(this.circle, duration, {
alpha: 0,
ease: Cubic.easeOut,
onComplete: this.resetCircle,
});
};
}
import { Power2 } from 'gsap';
// import { TabOptions } from '../models';
export const defaultTabOptions: any = { // TabOptions
active: true,
};
export const TAB_MAX_WIDTH = 200;
export const TAB_MIN_WIDTH = 72;
export const TAB_PINNED_WIDTH = 32;
export const TAB_ANIMATION_DURATION = 0.3;
export const TAB_ANIMATION_EASING = Power2.easeOut;
export const TABS_PADDING = 0;
export const ADD_TAB_MARGIN_LEFT = 2;
process.env.ENV === 'dev'
? 'http://localhost:8080/newtab.html'
: 'wexond://newtab';*/
export const NEWTAB_URL = 'https://google.com';
export const defaultTabOptions: chrome.tabs.CreateProperties = {
url: NEWTAB_URL,
active: true,
};
export const TAB_MAX_WIDTH = 200;
export const TAB_MIN_WIDTH = 72;
export const TAB_PINNED_WIDTH = 32;
export const TAB_ANIMATION_DURATION = 0.3;
export const TAB_ANIMATION_EASING = Power2.easeOut;
export const TABS_PADDING = 2;
const tl = new TimelineLite();
tl
.to(this.intro.current, 4.5, { opacity: 1, delay: 1 })
.to(this.intro.current, 1.5, {
opacity: 0,
onComplete: () => {
this.audio.current.play();
}
})
.set(this.logo.current, {
opacity: 1,
scale: 2.75,
delay: 0.5
})
.to(this.logo.current, 8, { scale: 0.05, ease: Power2.easeOut })
.to(this.logo.current, 1.5, { opacity: 0 }, "-=1.5")
.to(this.content.current, 200, { top: "-170%" });
}
import { Power2 } from 'gsap';
export const TAB_MAX_WIDTH = 200;
export const TAB_MIN_WIDTH = 72;
export const TAB_PINNED_WIDTH = 32;
export const TAB_ANIMATION_DURATION = 0.15;
export const TAB_ANIMATION_EASING = Power2.easeOut;
export const TABS_PADDING = 0;
)
.to(
'#main-cube',
0.6,
{
y: '+=30',
ease: Power2.easeIn,
},
'-=1.2'
)
.to(
'#main-cube',
0.6,
{
y: 40,
ease: Power2.easeOut,
},
'-=0.6'
)
.to(
'#addition-cube',
0.2,
{
y: -40,
},
'-=0.2'
)
.to('.main-cube-side', 0.7, {
backgroundColor: Theme.secondary.clearer(0.2)(),
boxShadow: `0px 0px 150px ${Theme.secondary()}`,
ease: Power2.easeInOut,
})
VueApiRequest.addEffect('blur', (el) => {
el.style.filter = 'blur(20px)'
TweenLite.to(el, 1, {
filter: 'blur(0)',
ease: Power2.easeOut
})
})
opacity: 1,
ease: Power4.easeOut
}
}
};
PageAnimations.animateIn = {
duration: PageAnimations.defaults.duration,
properties: PageAnimations.defaults.properties
};
PageAnimations.animateOut = {
duration: PageAnimations.defaults.duration,
properties: {
opacity: 0,
ease: Power2.easeOut
}
};
export default PageAnimations;
ballHitAnimation() {
if (!(this.hitTween && this.hitTween.isActive()) && this.hitAvailable) {
this.hitAvailable = false;
this.hitTween = new TimelineMax({
onComplete: () => {this.hitAvailable = true;},
});
this.lastHitPosition = this.ball.position.clone();
this.lastHitPosition.y = Math.max(this.lastHitPosition.y, this.config.tableHeight + 0.2);
this.hitTween.to(this, 0.05, {
paddleInterpolationAlpha: 1,
ease: Power2.easeIn,
});
this.hitTween.to(this, 0.4, {
ease: Power2.easeOut,
paddleInterpolationAlpha: 0,
});
}
}