javascript - Image behind text on hover CSS HTML -


i trying image show behind text hover effect.

it simple splash page now, can't seem figure out how work.

here current page. words below logo links. https://gyazo.com/8fac5b310ed8febd80032cc19b57d76e

here image want behind text when user hovers. https://gyazo.com/67852dd57789458942952b1dd3b3cb55

it scribble effect in different colors. wouldn't show @ one, different 1 behind each word hover.

here html:

<!doctype html> <html lang="en"> <head> <link href='https://fonts.googleapis.com/css?family=open+sans:400,800,600,300' rel='stylesheet' type='text/css'> <meta charset="utf-8"> <title>lira.net</title> <link rel="stylesheet" href="css/style.css"> <script src="script.js"></script> </head> <body> <div id="middlegroup"> <div id="topimage"> <img src="images/liralogo325.png"> </div> <div id="links">      <p>         <a href="#">liquidation</a> -         <a href="#">monetization<a> -         <a href="#">brokerage</a>      </p>  </div> </div> </body> <footer> <p>&copy; 2016 lira.net </p> </footer> </html> 

and here css:

h1 { font-family: "open sans" , serif;  color: #ffffff; text-shadow: 2px 2px 3px #4d4d4d; font-size: 5vw; text-align: center; }  body { margin: 0; position: absolute; top: 0; left: 0; bottom: 0; right: 0; }  #topimage{ width: 100%;  text-align:center; size: 1vw; } #links{ width: 100%; list-style-type:circle; } #middlegroup{ width:600px; height:200px; position:absolute; left:50%; top:50%; margin:-125px 0 0 -300px; } a:link{ color:#01197d; text-decoration: none; } a:visited{ color:#01197d; text-decoration: none; } a:hover{ text-decoration: none;  } a:active{ color:#01197d; text-decoration: none; } p { font-family: "open sans" , serif; font-weight: 600; font-size:15px; text-align:center; } ul { font-family: "open sans" , serif; font-weight: 400; font-size:20px; text-align:center; list-style-type:circle; } footer p{ font-family: "open sans" , serif; font-weight: 400; font-size:14px; position:absolute; bottom:0; width:100%; height:60px;   /* height of footer */  } 

any appreciated!

the easiest way done use background images can try this:

.class1:hover { background-image: url("paper.gif"); } .class2:hover { background-image: url("paper.gif"); } .class3:hover { background-image: url("paper.gif"); } 

just replace class names ones suits links, , play sizing, display inline-block links enough. here have need task


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -