Keep slashing at the dragon and watch for its attack animation. When it lunges, back-flip out of the way, then close the distance again immediately.
The opening you are looking for is when you land on its nose. Strike the crystal there and you will deal real damage, which is far more effective than swinging at the body.
Repeat that cycle, dodge, punish, mount the nose, hit the crystal, and the fight resolves fairly quickly once you stop getting greedy with attacks.