"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@angular/core");
class MyAwesomeAnimations {
    /**
     *
     * @param nameTrigger Name of triggers
     * @param setNewsStates add states for animations
     * @param setNewTransitions add transitions for states
     */
    SetTrigger(nameTrigger, setNewsStates, setNewTransitions) {
        let metaData = [
            core_1.state('*', core_1.style({
                transform: 'translateX(100%)',
            })),
            core_1.state('in', core_1.style({
                transform: 'translateX(0)',
            })),
            core_1.state('out', core_1.style({
                transform: 'translateX(-100%)',
            })),
            core_1.transition('* => in', core_1.animate('600ms ease-in')),
            core_1.transition('in => out', core_1.animate('600ms ease-in'))
        ];
        if (setNewsStates)
            metaData.concat(setNewsStates);
        if (setNewTransitions)
            metaData.concat(setNewTransitions);
        return core_1.trigger(nameTrigger, metaData);
    }
}
exports.MyAwesomeAnimations = MyAwesomeAnimations;
//# sourceMappingURL=animations.js.map