How to create an amazing welcome intro page background for websites
HOW TO CREATE AMAZING WELCOME INTRO PAGE BACKGROUND FOR WEBSITES WITH ONLY HTML AND CSS
You can watch the 50mins vedio on how to create your and also add your own effect or changes..
You can also download the source code 👉👉 Download here
Let's get started
Create a HTML file in any folder of your choice and call it index.html
Past the following code:
<!DOCTYPE html>
<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">
<title>HTML</title>
<!-- HTML -->
<!-- Custom Styles -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="clip">
<div class="h1"></div>
<h1>WISTEEN TECHNOLOGY</h1>
<h2>The home of comics.</h2>
<button > Get started</button>
</div>
</body>
</html>
Create a CSS file in the same folder and input the following codes
body {
font-size: 15pt;
margin: 0;
padding: 0;
}
.h1{
/* font-weight: bolder; */
width: 100%;
height: 700px;
/* color: black; */
z-index: -5;
position: absolute;
left:50%;
transform: translateX(-50%);
background:linear-gradient(to right, rgba(0,0,0,0.7),rgba(0,0,0,0.7)), url(1.png) ;
background-repeat: no-repeat;
background-size: cover;
}
.clip {
width: 100%;
height: 700px;
position: absolute;
z-index:0;
}
.clip::before {
content:"";
position:absolute;
z-index:-1;
top:0;
left:0;
right:0;
bottom:0;
-webkit-clip-path: polygon(0 86%, 45% 0, 100% 88%, 48% 54%);
clip-path: polygon(0 86%, 45% 0, 100% 88%, 48% 54%);
background:url(1.png);
background-repeat: no-repeat;
background-size: cover;
animation-name: cliper;
animation-duration: 4s;
animation-direction: alternate;
animation-iteration-count: infinite;
animation-play-state: running;
animation-fill-mode:both;
animation-timing-function: ease-in-out;
}
@keyframes cliper{
0%{
-webkit-clip-path: polygon(87% 0, 0% 100%, 68% 83%);
clip-path: polygon(87% 0, 0% 100%, 68% 83%);
}
20%{
-webkit-clip-path: polygon(87% 0, 0% 100%, 12% 31%);
clip-path: polygon(87% 0, 0% 100%, 12% 31%);
-webkit-clip-path: polygon(87% 0, 0% 100%, 12% 31%);
clip-path: polygon(87% 0, 0% 100%, 12% 31%);
}
40%{
-webkit-clip-path: polygon(87% 0, 0 36%, 100% 100%);
clip-path: polygon(87% 0, 0 36%, 100% 100%);
}
60%{
-webkit-clip-path: polygon(87% 0, 0 36%, 46% 100%);
clip-path: polygon(87% 0, 0 36%, 46% 100%);
}
80%{
webkit-clip-path: polygon(67% 78%, 80% 0%, 100% 100%, 0% 100%);
clip-path: polygon(67% 78%, 80% 0%, 100% 100%, 0% 100%);
}
100%{
webkit-clip-path: polygon(67% 78%, 80% 0%, 43% 56%, 0% 100%);
clip-path: polygon(67% 78%, 80% 0%, 43% 56%, 0% 100%);
}
}
h1{
font-size: 2em;
color: white ;
text-shadow: 3px 2px 3px black;
margin-bottom: 0;
padding-bottom: 0;
font-family: sans-serif;
}
h2{
color: plum;
width:500px;
margin-top: 0;
font-style: italic;
}
button{
width:400px;
height :100px;
outline:none;
border:4px solid plum;
color: white ;
font-size: 2em;
font-weight: bold;
background: transparent ;
left: 50%;
top :500px;
position: absolute;
transform: translateX(-50%);
box-shadow: 0px 2px 6px white inset;
}
@media (max-width:500px){
button{
width:300px;
}
h2{
font-size: 1em;
width: 300px;
}
h1{
color: white ;
text-shadow: 3px 2px 3px black;
}
}
For the image
Comments
Post a Comment