ANIMATION > TARGETS

Targets

Specify the elements to which property value changes are applied.
Animation targets are defined in the first argument of the animate() function.

const $ = animal;

$('.square')Targets.animate(
  {
    x: 100,
    scale: 2,
    opacity: .5,
    duration: 400,
    delay: 250,
    easing: 'ease-out',
    loop: 3,
    direction: 'alternate',
    autoplay: false,
    begin: () => {},
    update: () => {},
    complete: () => {},
  }
);
In this section