On the homepage of the Kingdom Wiki, the options change when hovered over. I can't figure out how it works, I can't replicate the source code. How can I recreate it? (Kingdom wiki linked)
On the homepage of the Kingdom Wiki, the options change when hovered over. I can't figure out how it works, I can't replicate the source code. How can I recreate it? (Kingdom wiki linked)
I suggest you take a look at their CSS code:
https://kingdomthegame.fandom.com/wiki/MediaWiki:Common.css
Basically they have two images for each button, one frozen and one animated , and then a CSS rule that switches between the images when the button is hovered. The coding is simple here but you need to have the images you want or knowing what else you want to change when hovered (color, size, jumping up-down, etc.)
I just want to switch the images. I'm assuming they need to be the same size?
What do you think?