Javascript How Do I Resize Two Flexboxes In An Animation Stack

Javascript How Do I Resize Two Flexboxes In An Animation Stack