<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
.container
{
display: flex;
justify-content: space-evenly;
}
.main
{
width: 400px;
position: relative;
overflow: hidden;
}
.main .innerbox
{
width: 80%;
height: 80%;
position: absolute;
top: 3%;
left: 10%;
text-align: center;
transition: all 1s;
transform: rotateY(90deg) ;
transform-origin:100% 0%;
transform-style: preserve-3d;
opacity: 0;
background: rgba(5,4,3,0.3);
box-shadow: -10px 10px 6px 0px rgba(0,0,0,0.75);
}
.main:hover .innerbox
{
opacity: 1;
transform: rotate(0deg) ;
}
.main img
{
width: 100%;
}
.main a,h1{
color: white;
text-decoration: none;
}
</style>
</head>
<body>
<div class="container">
<div class="main">
<div class="innerbox">
<div class="head"><H1>LETS GET A TOUR OF COLOURS</H1></div>
<a href="#">HAPPY HOLLY</a>
</div>
<img src="photo/4.jpg">
</div>
</div>
</body>
</html>
0 Comments