bia-framework
Version:
Bia Framework to work with angular 2
23 lines • 1.05 kB
JavaScript
;
var core_1 = require("@angular/core");
var CoreAnimations = (function () {
function CoreAnimations() {
}
CoreAnimations.animationReveal = function () {
return core_1.trigger('animationReveal', [
core_1.state('inactive', core_1.style({ transform: 'scale(0)' })),
core_1.state('active', core_1.style({ transform: 'scale(1)' })),
core_1.transition('inactive <=> active', [core_1.animate("300ms cubic-bezier(.55,0,.1,1)")])
]);
};
CoreAnimations.animationSideSlide = function () {
return core_1.trigger('animationSideSlide', [
core_1.state('inactive', core_1.style({ transform: 'translateX(-100%)' })),
core_1.state('active', core_1.style({ transform: 'translateX(0)' })),
core_1.transition('inactive <=> active', [core_1.animate("400ms cubic-bezier(.55,0,.1,1)")])
]);
};
return CoreAnimations;
}());
exports.CoreAnimations = CoreAnimations;
//# sourceMappingURL=CoreAnimations.js.map