Last active
August 24, 2018 22:03
-
-
Save Florencelg/a85557eb59a395ab61ed85c69206d16e to your computer and use it in GitHub Desktop.
Find The Precious - intregration -
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Test image au survol</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="style.css" /> | |
<script src="main.js"></script> | |
</head> | |
<body> | |
<article class="wizard"> | |
<div class="wizard-div"> | |
<p class="wizard-paragraphe recompense">Reward <span>1000</span> golden coins</p> | |
<h3 class="wizard-titre">Gandalf</h3> | |
</div> | |
<h3 class="wizard-paragrapheG">Gandalf</h3> | |
</article> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wizard { | |
margin: 52px; | |
position: relative; | |
width: 500px; | |
height: 500px; | |
border: 1px solid #C8C8C8; | |
background-image: url("http://images.innoveduc.fr/integration_gandalf.png"); | |
} | |
.wizard:hover { | |
background-image: url("http://images.innoveduc.fr/integration_gandalf.png"); | |
} | |
.wizard:hover .wizard-div { | |
opacity: 0; | |
} | |
.wizard:hover .wizard-paragrapheG { | |
opacity: 1; | |
} | |
.wizard-div { | |
background-color: #7c7c7c99; | |
opacity: 1; | |
position: absolute; | |
bottom: 0px; | |
text-align: center; | |
height: 100%; | |
width: 100%; | |
color: white; | |
-webkit-transition: all 0.2s ease; | |
-moz-transition: all 0.2s ease; | |
-ms-transition: all 0.2s ease; | |
-o-transition: all 0.2s ease; | |
transition: all 0.2s ease; | |
} | |
.wizard-titre { | |
margin-top: 25%; | |
text-align: center; | |
font-size: 4em; | |
} | |
.wizard-paragrapheG { | |
opacity: 0; | |
margin-top: 80%; | |
text-align: center; | |
font-size: 3em; | |
color: white; | |
} | |
span { | |
color: coral; | |
} | |
.recompense { | |
border: 1px black solid; | |
border-radius: 5px; | |
width: 80%; | |
height: 25%; | |
padding-top: 2%; | |
padding-bottom: 2%; | |
margin-left: 1em; | |
margin-right: 1em; | |
font-size: 3em; | |
background-color: rgb(219, 216, 216); | |
width: 55%; | |
margin-left: 25%; | |
color: rgb(2, 2, 2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment