Animation constructor

Animation(
  1. KeyframeEffect effect,
  2. AnimationTimeline timeline
)

Implementation

Animation(KeyframeEffect effect, AnimationTimeline timeline)
    : _effect = effect,
      _timeline = timeline;