/ Published in: CSS

You can view a demo on [JBIN](http://jsbin.com/okepo4). This was a quick 60 second venture. :) Got a better way?
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Sort of Lame CSS Text Changing</title> <style> h1 { position: relative; } h1:hover { color: transparent; } h1:hover:after { content: attr(data-hover-response); color: black; position: absolute; left: 0; } </style> </head> <body> <h1 data-hover-response="I Said Don't Touch Me!"> Don't Touch Me </h1> </body> </html>
Comments
