Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
style,
animate,useAnimation,animation,
transition,
} from '@angular/animations';
export const fadeIn = animation([
style({opacity: 0}),
animate("{{delay}}", style({opacity: 1}))
], {params: {delay: '1000ms'}});
export const fadeOut = animation([
animate("{{delay}}", style({opacity:0}))
], {params: {delay: '1000ms'}});
export const fadeInOut = trigger('fadeInOut', [
transition('void => *', useAnimation(fadeIn, {params: {delay:"2000ms"}})), // :enter is alias to 'void => *'
transition('* => void', useAnimation(fadeOut, {params: {delay:"2000ms"}} )) // :leave is alias to '* => void'
]);
*/
LoaderBarComponent.prototype.cdRef;
}
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
const fadeIn = animation([style({ opacity: '0' }), animate('{{ time}} {{ easing }}', style({ opacity: '1' }))], {
params: { time: '350ms', easing: 'ease' },
});
/** @type {?} */
const fadeOut = animation([style({ opacity: '1' }), animate('{{ time}} {{ easing }}', style({ opacity: '0' }))], { params: { time: '350ms', easing: 'ease' } });
/** @type {?} */
const fadeInDown = animation([
style({ opacity: '0', transform: '{{ transform }} translateY(-20px)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '1', transform: '{{ transform }} translateY(0)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
const fadeInUp = animation([
style({ opacity: '0', transform: '{{ transform }} translateY(20px)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '1', transform: '{{ transform }} translateY(0)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
const fadeInLeft = animation([
style({ opacity: '0', transform: '{{ transform }} translateX(20px)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '1', transform: '{{ transform }} translateX(0)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
const fadeInRight = animation([
style({ opacity: '0', transform: '{{ transform }} translateX(-20px)' }),
TdFadeDirective.prototype.show = function () {
var _this = this;
this._renderer.setStyle(this._element.nativeElement, 'display', this._defaultDisplay);
this._changeDetectorRef.markForCheck();
this._animationFadeOutPlayer = this._animationBuilder.build(animation([
style({
opacity: '0',
display: 'none',
}),
animate(this.duration + 'ms ease-in', style({ opacity: AUTO_STYLE })),
])).create(this._element.nativeElement);
this._animationFadeOutPlayer.onDone(function () {
_this._onFadeOutDone();
});
this._animationFadeOutPlayer.play();
};
TdFadeDirective.prototype._onFadeInDone = function () {
import {
animate, style, keyframes, animation, AnimationReferenceMetadata
} from '@angular/animations';
export const shake: AnimationReferenceMetadata = animation([
animate('.75s', keyframes([
style({
offset: 0,
transform: 'translate3d(0, 0, 0)'
}),
style({
offset: 0.1,
transform: 'translate3d(-10px, 0, 0)'
}),
style({
offset: 0.2,
transform: 'translate3d(10px, 0, 0)'
}),
style({
offset: 0.3,
transform: 'translate3d(-10px, 0, 0)'
trigger,
useAnimation
} from '@angular/animations';
import { IAnimationOptions } from '../common/interfaces';
export interface IRotateOutUpRightAnimationOptions extends IAnimationOptions {
/**
* Angle - number of degrees at which end animation.
*
* Default 90
*/
degrees?: number;
}
const rotateOutUpRight = animation([
animate(
'{{duration}}ms {{delay}}ms',
keyframes([
style({ opacity: 1, easing: 'ease', offset: 0 }),
style({ opacity: 0, transform: 'rotate3d(0, 0, 1, {{degrees}}deg)', easing: 'ease', offset: 1 })
])
)
]);
const DEFAULT_DURATION = 1000;
export function rotateOutUpRightAnimation(options?: IRotateOutUpRightAnimationOptions): AnimationTriggerMetadata {
return trigger((options && options.anchor) || 'rotateOutUpRight', [
transition(
'0 => 1',
[
export const fadeInLeft = animation([
style({ opacity: '0', transform: '{{ transform }} translateX(20px)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '1', transform: '{{ transform }} translateX(0)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
export const fadeInRight = animation([
style({ opacity: '0', transform: '{{ transform }} translateX(-20px)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '1', transform: '{{ transform }} translateX(0)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
export const fadeOutDown = animation([
style({ opacity: '1', transform: '{{ transform }} translateY(0)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '0', transform: '{{ transform }} translateY(20px)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
export const fadeOutUp = animation([
style({ opacity: '1', transform: '{{ transform }} translateY(0)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '0', transform: '{{ transform }} translateY(-20px)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
export const fadeOutLeft = animation([
style({ opacity: '1', transform: '{{ transform }} translateX(0)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '0', transform: '{{ transform }} translateX(20px)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
/** @type {?} */
export const fadeOutRight = animation([
style({ opacity: '1', transform: '{{ transform }} translateX(0)' }),
animate('{{ time }} {{ easing }}', style({ opacity: '0', transform: '{{ transform }} translateX(-20px)' })),
], { params: { time: '350ms', easing: 'ease', transform: '' } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFkZS5hbmltYXRpb25zLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFicC9uZy50aGVtZS5zaGFyZWQvIiwic291cmNlcyI6WyJsaWIvYW5pbWF0aW9ucy9mYWRlLmFuaW1hdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQzs7QUFFaEUsTUFBTSxPQUFPLE1BQU0sR0FBRyxTQUFTLENBQUMsQ0FBQyxLQUFLLENBQUMsRUFBRSxPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsRUFBRSxPQUFPLENB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XG4gICAgYW5pbWF0ZSgne3sgdGltZSB9fSB7eyBlYXNpbmcgfX0nLCBzdHlsZSh7IG9wYWNpdHk6ICcwJywgdHJhbnNmb3JtOiAne3sgdHJhbnNmb3JtIH19IHRyYW5zbGF0ZVgoLTIwcHgpJyB9KSksXG4gIF0sXG4gIHsgcGFyYW1zOiB7IHRpbWU6ICczNTBtcycsIGVhc2luZzogJ2Vhc2UnLCB0cmFuc2Zvcm06ICcnIH0gfSxcbik7XG4iXX0=
trigger,
useAnimation
} from '@angular/animations';
import { IAnimationOptions } from '../common/interfaces';
export interface ILightSpeedOutAnimationOptions extends IAnimationOptions {
/**
* Translate, possible units: px, %, em, rem, vw, vh
*
* Default: 100%
*/
translate?: string;
}
const lightSpeedOut = animation([
animate(
'{{duration}}ms {{delay}}ms',
keyframes([
style({ opacity: 1, easing: 'ease-in', offset: 0 }),
style({ opacity: 0, transform: 'translate3d({{translate}}, 0, 0) skewX(30deg)', easing: 'ease-in', offset: 1 })
])
)
]);
const DEFAULT_DURATION = 1000;
export function lightSpeedOutAnimation(options?: ILightSpeedOutAnimationOptions): AnimationTriggerMetadata {
return trigger((options && options.anchor) || 'lightSpeedOut', [
transition(
'0 => 1',
[
}),
style({
transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)',
offset: 0.8,
}),
style({
transform: 'scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)',
offset: 0.9,
}),
style({ transform: 'scale3d(1, 1, 1)', offset: 1 }),
])
),
{ params: { timing: DEFAULT_TIMING, delay: 0 } }
);
export const wobble = animation(
animate(
'{{ timing }}s {{ delay }}s',
keyframes([
style({ transform: 'none', offset: 0 }),
style({
transform: 'translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)',
offset: 0.15,
}),
style({
transform: 'translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)',
offset: 0.3,
}),
style({
transform: 'translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)',
offset: 0.45,
}),
import {
animate, style, keyframes, animation, AnimationReferenceMetadata
} from '@angular/animations';
export const rollIn: AnimationReferenceMetadata = animation([
animate('.75s', keyframes([
style({
offset: 0,
opacity: 0,
transform: 'translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)'
}),
style({
offset: 1,
opacity: 1,
transform: 'translate3d(0, 0, 0)'
})
]))
]);
animateChild,
animation,
AnimationTriggerMetadata,
AUTO_STYLE,
group,
keyframes,
query,
style,
transition,
trigger,
useAnimation
} from '@angular/animations';
import { IAnimationOptions, IAttentionSeekerAnimationOptions } from '../common/interfaces';
const flash = animation([
animate(
'{{duration}}ms {{delay}}ms',
keyframes([
style({ visibility: AUTO_STYLE, opacity: 1, easing: 'ease', offset: 0 }),
style({ opacity: 0, easing: 'ease', offset: 0.25 }),
style({ opacity: 1, easing: 'ease', offset: 0.5 }),
style({ opacity: 0, easing: 'ease', offset: 0.75 }),
style({ opacity: 1, easing: 'ease', offset: 1 })
])
)
]);
const DEFAULT_DURATION = 1000;
export function flashAnimation(options?: IAttentionSeekerAnimationOptions): AnimationTriggerMetadata {
return trigger((options && options.anchor) || 'flash', [