trigger

Specifies a different element than the defined target to trigger the drag animation.

Accepts

trigger code example

import { createDraggable } from 'animejs';

createDraggable('.row', {
  trigger: '.circle',
});
<div class="large centered row">
  <div class="square"></div>
  <div class="circle draggable"></div>
  <div class="square"></div>
</div>