reset() code example
import { createDraggable, utils } from 'animejs';
const [ $resetButton ] = utils.$('.reset');
const draggable = createDraggable('.square');
const resetDraggable = () => draggable.reset();
$resetButton.addEventListener('click', resetDraggable);
<div class="large centered row">
<div class="square draggable"></div>
</div>
<div class="large row">
<fieldset class="controls">
<button class="button reset">Reset</button>
</fieldset>
</div>