-1

What CSS would I have to use to make an image black and white until it was hovered over? I would prefer answers to be fully CSS as it will help me learn move about CSS transitions and animation.

Ryan Castle
  • 247
  • 1
  • 3
  • 11

1 Answers1

-1

You could try this: w3schools hover

You could define that CSS for pretty much any element. When the mouse is over it, the new style will apply.

durbnpoisn
  • 4,666
  • 2
  • 16
  • 30
  • Don't use w3schools. Use MDN instead. https://developer.mozilla.org/en-US/ Also I wouldn't consider giving someone a link to another website as an answer, rather a comment. – Idris Mar 25 '14 at 20:11
  • ok. Sorry about that. Thought that was a reasonable resource. btw: I would love to have left a comment, rather than an answer, but my reputation isn't high enough. – durbnpoisn Mar 25 '14 at 20:16
  • No worries. Read about why it isn't a reasonable resource here. http://www.w3fools.com/ – Idris Mar 25 '14 at 20:24
  • w3fools shows nothing about what's wrong, and hasn't been updated since 2011. – Sunny Mar 25 '14 at 20:37
  • You sure about that? https://github.com/paulirish/w3fools It was updated 2 days ago.... @Sunny – Idris Mar 25 '14 at 22:34