import type { TEasingFn } from '../types' ; export const easeInOutQuad = ( from , range , time ) => { if ( ( time *= 2 ) < 1 ) { return range / 2 * time * time + from ; } return - range / 2 * ( ( -- time ) * ( time - 2 ) - 1 ) + from ; } ;