Trigger animations with button press

I have a css animation to change the height of a box. How would i trigger that animation when i push a button, which is a separate element?

Is there a way to do this with css, or would i have to use jQuery? Like adding classes for instance.