Can you make animations for box colliders like how you can in unity?

I’m coming to Unreal after using Unity for many years and so I need to relearn everything from scratch again. Currently, I’m having trouble transferring my knowledge of hitbox animations to Unreal.

For example in Unity, I was able to make animations for my 2d character’s attack hitboxes that match my animation using a simple timeline and keyframes.
Here is an example of what I’m talking about: https://youtu.be/Yx6BZDJWt8A?feature=shared.

I understand that processes are going to be different between engines. So, I was wondering if anyone could let me know how I could get a similar result even if the process is completely different.