Animated Website Using HTML, CSS Only

 Need to figure out how to make a site with HTML and CSS? 

You're in the correct spot. In this aide, we show you every one of the means to get from a clear screen to a functioning site that is upgraded and very gorgeous simultaneously.

                                             


Above all, what is HTML and CSS? 

Indeed, you could simply look into the two terms in Wikipedia, however those definitions aren't very peruser well disposed. We should work on things a piece: 

HTML (Hypertext Markup Language) characterizes the design and substance of a site page – where things go, how they are spread out, and what's on the page 

CSS (Cascading Style Sheets) characterizes the styling/show of a site page and the components on it 

You can't actually have one without the other – the two work together to make up the last page, its plan, and the substance that is on it. 

Note; when we say "a page," what we mean is a solitary HTML report – a solitary page that is important for your site. While, "a site" is the finished thing – your entire website with all its individual site pages.

Source Codes:- 

HTML FILE (save as index.html)

0

<!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.0">
    <title>Animated bootstrap website design</title>
    <link rel="stylesheet" href="style.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
 
</head>
 
<body>
    <div class="container">
                     <div class="nav-bar">
            <img src="logo.png" class="logo">
            <h3>Codewithharsh</h3>
            <nav>
                <ul>
                    <li><a href="">Home</a></li>
                    <li><a href="">Services</a></li>
                    <li><a href="">Blog</a></li>
                    <li><a href="">Contact</a></li>
                </ul>
            </nav>
            <button class="btn">Register Now</button>
        </div>
        <div class="content">
            <h1>Enjoy This <br>Website</h1>
            <h4>Boost Your Learning Skills</h4>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipisicing<br>
                elit, sed do eiusmod tempor incididunt ut labore et dolore magna<br>
                aliqua. Ut enim ad minim veniam, quis nostrud exercitation
            </p>
            <div class="content2">
                <button class="btn2">
                    Welcome
                </button>
                <div class="social-media">
                    <a href=""><i class="fa fa-instagram"></i></a>
                    <a href=""><i class="fa fa-pinterest"></i></a>
                    <a href=""><i class="fa fa-google"></i></a>
                    <a href=""><i class="fa fa-youtube"></i></a>
                    <a href=""><i class="fa fa-github"></i></a>
                </div>
            </div>
        </div>
        <img src="img1.png" class="image">
    </div>
</body>
 
</html>


CSS File (save as index.html)


*{
    margin0;
    padding0;
    box-sizingborder-box;
    font-family'Poppins'sans-serif;
}
.container{
    height100vh;
    width100%0;
    background-imageurl(background.png);
    background-positioncenter;
    background-sizecover;
    padding-left5%;
    padding-right5%;
    box-sizingborder-box;
    positionrelative;
}
.nav-bar{
    width100%;
    height15vh;
    marginauto;
    displayflex;
    align-itemscenter;
}
.logo{
    width50px;
    cursorpointer;
}
h3{
    font-family'Poppins'sans-serif;
    text-transformuppercase;
    font-size20px;
    font-weight600;
    color#378de5;
}
nav{
    flex1;
    padding-left350px;
}
nav ul li{
    displayinline-block;
    list-style:none;
    margin0 20px;
}
nav ul li a {
    text-decorationnone;
    color#1b1b1b;
    font-family'Poppins'sans-serif;
    text-transformuppercase;
    font-weight600;
    font-size15px;
}
nav ul li a:hover{
    border-bottom1px solid #378de5;
    width25px;
    color#378de5;
    height0.18px;
    transition: border-bottom .3s;
}
.btn{
    box-shadow:  inset 0px 1px 0 0 #bbdaf7;
    text-transformuppercase;
    background:linear-gradient(to bottom#378de5 5%#79bbff 100%);
    border-radius30px;
    border1px solid #84bbf3;
    cursorpointer;
    color#fff;
    font-family'Poppins'sans-serif;
    font-size17px;
    font-weight700;
    padding12px 19px;
    text-decorationnone;
    box-shadow1px 4px 12px rgba(94,28,68.15);
    text-shadow0px 1px 0px #528ecc;
}
.btn:hover{
    box-shadow3px 8px 22px rgba(94,28,68.15);
    transformscale(1.1);
    transition.2s ease-in-out;
}

h1{
    text-transformuppercase;
    font-weight700;
    margin-top40px;
    letter-spacing.1rem;
    font-size53px;
    color#1641cf;
}
h4{
    font-size20px;
    font-weight800;
    margin-top10px;
    letter-spacing.2rem;
    color#65aaee;
}
p{
    font-size14px;
    font-weight600;
    letter-spacing.1rem;
    margin-top50px;
    color#378de5;
}
.content2{
    displayflex;
    align-itemscenter;
}
.btn2{
    background-imagelinear-gradient(to right#1a2980 0%,
 #26d0ce 51%#1a2980 100%);
    margin-top80px;
    padding15px 45px;
    text-aligncenter;
    transition.5s;
    bordernone;
    outlinenone;
    text-transformuppercase;
    color#fff;
    cursorpointer;
    font-weight700;
    font-size:22px;
    displayblock;
    border-radius30px;
    background-size200% auto;
    box-shadow3px 8px 22px rgba(94,28,68.15);

}
.btn2:hover{
    background-positionright center;
    color#fff;
    text-decorationnone;
}
.social-media{
    margin-top80px;
    margin-left50px;
    text-decorationnone;
}
.fa{
    color#378de5;
    padding5px;
}
.fa:hover{
    transitionscale(1.2);
    color#1b1b1b;
    transition.5s;
}
.image {
    height90%;
    positionabsolute;
    width50%;
    bottom0;
    right0;
}


To Download Images Click here





Post a Comment

Previous Post Next Post