How are you getting the link to shake? I might be able to help. The Sugarcube <<timed>> macro might allow the animation to show. As for how to actually make it shake... I have no idea.
Edit: Install the shaking links add-on mentioned below. Then use this code:
<<linkreplace "Shaking Link">><<shake>>[[Shaking Link]]<</shake>><</linkreplace>>