@rxdi/ui-kit
Version:
UI Components for building graphql-server website
17 lines • 461 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.animate = void 0;
const lit_html_1 = require("@rxdi/lit-html");
function animate(template, fn = ({ stagger }) => ({
delay: stagger(200),
translateX: 0,
easing: 'spring(1, 80, 10, 0)'
})) {
return (0, lit_html_1.html) `
<rx-animation .options=${fn}>
${template}
</rx-animation>
`;
}
exports.animate = animate;
//# sourceMappingURL=animate.js.map