HTML Anchor Highlighting

· klm's blog


Original post is here: eklausmeier.goip.de

In Alexander Six's blog I saw that you can highlight HTML anchor text with a skewed bar. Below is the solution I use in this blog. I am still struggling with my own requirement that the skeyY angle is dependent on the length of the anchor string. Currently I do not know how I can find this out.

[codepen] eklausmeier/qBjOvPq [/codepen]

Another similar idea from RoccoP is below: [codepen] roccop/abdxGmQ [/codepen]

Below animation by Ana Tudor shows how skewX and skewY work in CSS. Press on HTML button to see the result.

[codepen] thebabydino/JoQRdb [/codepen]