code snippets
rules
- you are allowed to edit, modify, and use these codes to your hearts content.
- credit is not mandatory at all!!! you can always link back to my site as a thank you though

rainbow on hover
i've been thinking about this theme i used to have on tumblr when i was in my teens and it had an option for the links to display the colors of the rainbow on hover. when i check the source code for the rainbow links it turns out that it was some very old JavaScript code doing the changes which makes sense. the tumblr theme released around feb 2015 and CSS animations became widely available around september 2015.
and so i made my own version using CSS animations and this is the result!
instructions
- copy-paste either code snippet on a CSS file (or internal style, fuck it bro it's your life)
- apply the class name to whatever element you want the rainbow effect on hover. TIP: for links you can just do
a:hoverinstead of.[CLASSNAME]:hoverfor the CSS selector