Last active
October 9, 2018 09:32
-
-
Save Chojiu15/adffeb0e1a789b4acb53393c3e228603 to your computer and use it in GitHub Desktop.
Gandoulf du seigneur des anneaux
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Gandalf</title> | |
<link rel="stylesheet" href="style.css" /> | |
</head> | |
<body> | |
<div id="container"> | |
<img src="http://images.innoveduc.fr/integration_gandalf.png" alt="gandalf"> | |
<h1 id="name">Gandalf</h1> | |
<div id="reward"> | |
<p>Reward <span>1000</span> golden coins</p> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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
img { | |
opacity : 0.5; | |
height: auto; | |
width: auto; | |
} | |
#container:hover img | |
{ | |
opacity : 1; | |
transition: 1s; | |
} | |
#container:hover #name | |
{ | |
position: absolute; | |
top: 90%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 30px; | |
color : white; | |
} | |
#container:hover #reward | |
{ | |
display: none; | |
} | |
#container | |
{ | |
position: relative; | |
height: 572px; | |
width: 500px; | |
} | |
#name | |
{ | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 50px; | |
color : white; | |
} | |
#reward | |
{ | |
background-color: rgba(100, 100, 100, 0.5); | |
position: absolute; | |
top: 20%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
font-size: 30px; | |
width: 75%; | |
padding: 10px; | |
border-radius: 40px; | |
text-align: center; | |
} | |
span | |
{ | |
font-weight: bold; | |
color: orangered; | |
font-size: 40px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment