you can only "attack" the enemy by dashing through its core (the blue orb you see when it opens up). In the meantime, you have to dodge though it's attacks to charge up, so when you dash through the orb you'll transfer all your charge.
Thanks for the compliment on the animation!