Trying to use custom link styles

hey, trying to add a custom link animation to my website, I don’t know how to do this in Webflow so I built it in code pen and am now trying to embed it into a link block, any idea why its not working?

Here’s the code pen

Any help would be much appreciated.

If you share a read-only it might be possible to see where you are having an issue?