Designing The Website Home Page in HTML and CSS With Animation.|





Copy The HTML file:

<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="style.css">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Technical Vandar</title>
</head>
<body>
    <nav>
        <div class="all">
            <div class="logo">
                <a href="#">Technical Vandar</a>
            </div>
            <div class="links">
                <a href="#">Contact</a>
                <a href="#">Services</a>
                <a href="#">Projects</a>
                <a href="#">Home</a>
            </div>
        </div>
    </nav>
    <section id="home">
        <div class="content">
            <h1></h1>
        </div>
        <div class="sm">
            <a href="#" class="facebook"><i class="fa fa-facebook"></i></a>
            <a href="#" class="google"><i class="fa fa-google"></i></a>
            <a href="#" class="youtube"><i class="fa fa-youtube"></i></a>
            <a href="#" class="twitter"><i class="fa fa-twitter"></i></a>
            <a href="#" class="instagram"><i class="fa fa-instagram"></i></a>
        </div>
        <div class="button">
            <a href="#">Learn More</a>
        </div>
    </section>
</body>
</html>




Copy The CSS File:

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-image: url(img/uner-water.jpg);
    background-size: 100% 100%;
    height: 750px;
}
.logo{
    margin-top: 35px;
    margin-left: 25px;
}
.logo a{
    font-size: 25px;
    color: white;
    text-decoration: none;
    font-weight: 1300px;
}
.logo a:hover{
    color: red;
}
.links a{
    float: right;
    margin: 0 10px;
    text-decoration: none;
    font-size: 20px;
    color: white;
    position: relative;
}
.links a:hover{
    color: red;
}
.sm{
    margin-top: 90px;
    margin-left: 650px;
 
}
.sm a{
    margin: 0 16px;
    color: white;
}
.sm a:hover{
    color: aqua;
}
#home .content h1::after{
    content: "Technical Vandar";
    position: relative;
    margin-top: 350px;
    animation: textanim 10s linear infinite;
}
.content h1{
    position: relative;
    margin-top: 190px;
    margin-left: 520px;
    font-size: 60px;
}
@keyframes textanim{
    20%{
        content: "Official Tech Channel";
    }
    40%{
        content: "Professional Youtuber";
    }
    60%{
        content: "Professional Web Developer";
    }
    80%{
        content: "Professional Web Designer";
    }
    100%{
        content: "Professional Graphics Designer";
    }
}
.button{
    margin-top: 35px;
    width: 125px;
    margin-left: 720px;
}
.button a{
    text-decoration: none;
    font-size: 25px;
    border: 1px solid black;
    border-radius: 25px;
    background-color: greenyellow;
    color: black;
}
.button a:hover{
    color: greenyellow;
    background-color: black;
}

::selection{
    color: red;
    background-color: aqua;
}




For Image:


Comments