Last active
January 24, 2019 07:43
-
-
Save GuillaumeLoup/00c900a816ada46e76a8ded484f8da2d to your computer and use it in GitHub Desktop.
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="style.css" /> | |
<title>Gandalf</title> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="premier"> | |
<div class="image"> | |
<img src="http://images.innoveduc.fr/integration_gandalf.png" alt="gandalf1"> | |
</div> | |
<div class="text"> | |
<h2>reward <span>1000</span><br />golden coins</h2> | |
<p>Gandalf</p> | |
</div> | |
</div> | |
</div> | |
</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
.container | |
{ | |
position: relative; | |
width: 500px; | |
height: auto; | |
} | |
.container .premier span | |
{ | |
color : #F05411; | |
} | |
.container .premier .image img | |
{ | |
position: relative; | |
opacity: 0.6; | |
} | |
.container .premier h2 | |
{ | |
margin-top: 20px; | |
margin-left: 40px; | |
margin-right: 40px; | |
border-radius: 15px; | |
position: relative; | |
top: 30px; | |
font-size: 3.5em; | |
background-color: #EBE8E8; | |
opacity: 0.8; | |
padding: 3px 8px 5px 50px; | |
} | |
.container .premier p | |
{ | |
position: relative; | |
font-size: 4.3em; | |
margin-top: 200px; | |
margin-left: 135px; | |
color: white; | |
} | |
.container .premier .image | |
{ | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
transform: 0.5s; | |
} | |
.container .premier:hover .text h2 | |
{ | |
opacity: 0; | |
} | |
.container .premier:hover p | |
{ | |
color: white; | |
font-size: 2.3em; | |
margin-top: 300px; | |
margin-left: 200px; | |
} | |
.container .premier:hover .image img | |
{ | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment