const anime = require('animejs').default; const { TIMES } = require('../../constants'); // shamelessly lifted from teh anime docs // https://animejs.com/documentation/#svgAttr function banish(id) { anime({ targets: [document.getElementById(id)], scaleY: 0, fill: '#fff', easing: 'easeInOutElastic', duration: TIMES.TARGET_DURATION_MS, }); } module.exports = banish;