WATCH PREVIEW:
FULL CODE:
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
*{
margin: 0;
padding: 0;
}
body{
background-image: url(p.jpg);
background-repeat: no-repeat;
background-size: cover;
}
#nav{
width: 100%;
height: 60px;
background-color: rgb(17, 15, 15);
}
img{
height: 100%;
width: 100%;
}
.item{
height: 30vh;
width: 25vw;
margin: 10px;
box-shadow: 10px 10px 10px black;
transition: all 0.5s ease-in-out;
}
.main{
display: flex;
align-items: center;
position: absolute;
top: 25%;
left: 10%;
}
#fir{
transform: skewY(10deg);
}
#thir{
transform: skewY(-10deg);
}
#sec{
position: relative;
top: 30px;
}
#fir:hover{
z-index: 2;
transform: scale(1.3,1.3);
}
#sec:hover{
z-index: 2;
transform: scale(1.3,1.3);
}
#thir:hover{
z-index: 2;
transform: scale(1.3,1.3);
}
a{
color: white;
text-decoration: none;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 15px;
font-size: 20px;
}
button{
padding: 10px;
margin-right: 40px;
margin-top: 10px;
border: none;
border-radius: 8px;
}
</style>
</head>
<body>
<div id="nav" style="display: flex;">
<div style="background-image: linear-gradient(to right, blue, purple); width: 10%; height: 100%;">
<h1 style="color: white; margin-left: 15px;">Slider</h1>
</div>
<div id="tabs" style="margin-left: 200px; margin-top: 15px;">
<a href="">Home</a>
<a href="">Blog</a>
<a href="">Contact</a>
<a href="">New Slide</a>
</div>
<div id="butn" style="position: absolute; right: 0;">
<button style= "background-color: rgb(0, 102, 255); color: white;">Subscribe</button>
</div>
</div>
<div class="main">
<div class="item" id="fir">
<img src="Screenshot (37).png" alt="">
</div>
<div class="item" id="sec">
<img src="Screenshot (36).png" alt="">
</div>
<div class="item" id="thir">
<img src="Screenshot (38).png" alt="">
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
</body>
</html>
Comments
Post a Comment