Source
static num easeInOutElastic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeInElastic(ratio) : 0.5 * easeOutElastic(ratio - 1.0) + 0.5; }
static num easeInOutElastic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeInElastic(ratio) : 0.5 * easeOutElastic(ratio - 1.0) + 0.5; }