Simulating diablo4's new animation based combat system

Hi everyone,

as you guys might have seen, diablo 4 is coming out and they published a video explaining their new combat system. In that video they create a collider based on animation which is what I am looking for. I am not sure how would I do this in code. Any ideas ?