import anime from "animejs";
let duration = 2e3;
function animate(el, e) {
anime({
targets: el,
backgroundColor: "#b30000",
duration: duration,
translateX: [0, 250], // from 0 to 250
delay: 250,
direction: "alternate",
loop: true
});
}
export { animate, duration };