adc

clicks

How To Create a NETFLIX LOGO || Pure CSS Netflix Logo

 A few moons ago I tested Netflix, quickly got hooked, and got myself an account. I started watching a lot of series that I normally had to view elsewhere. Each event or movie starts with the Netflix logo animation. I quickly started thinking about implementing this in CSS. So after waiting for a few episodes I went over to  started to work on the logo.

 HTML

Before we start writing code first, we need to create a primary structure of the HTML document, so that the browser can understand and start working. The basic HTML structure looks like the following.

After writing the primary structure of the HTML document, you will also write the tags and content you need. After that, you can see the output in your browser. We know that HTML Sudu Mae is used for exposing content in a basic format. To complete our content we need to use CSS, which is an HTML insert and it creates an engaging user interface.

 <!DOCTYPE html>
<html>
<head>
    <title>nrtflix logo</title>
    <link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

    <div class="logo">
        <div class="netflix">
            <span></span>
            <span></span>
            <span></span>
        </div>
        <h3>netflix</h3>
    </div>
</body>
</html>

CSS

Now, we have time to improve the HTML content, for that, we need to add CSS to the HTML file. CSS can be added to HTML documents in a total of three ways, here we are using outside CSS design using CSS will arrive here after typing and see the output in your browser.

 body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
}

.netflix{
    position: relative;
    width: 360px;
    height: 520px;
    overflow: hidden;

}

.netflix:before{
    position: absolute;
    content: "";
    left: 0;
    bottom: -100px;
    background: #000;
    height: 120px;
    width:100%;
    z-index: 2;
    border-top-left-radius: 10%;
    border-top-right-radius: 100%;
    transform: scale(1.5);
}


.netflix span{
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    background: #fff;
}

.netflix span:nth-child(1){
    background: #b00612;
    left: 0;
}
.netflix span:nth-child(2){
    background: #e50815;
    z-index: 1;
    transform-origin: top left;
    transform: skew(24.8deg);
    box-shadow: 0 0 40px rgba(0,0,0.1);
}

.netflix span:nth-child(3){
    background: #b00612;
    right: 0;
}

h3{
    position: absolute;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: arial;
    color: white;
    font-size: 60px;
    letter-spacing: 10px;
text-transform: uppercase;
}

 

 Watch Video

 

Youtube Channel 

 

How To Create a NETFLIX LOGO || Pure CSS Netflix Logo How To Create a NETFLIX LOGO || Pure CSS Netflix Logo Reviewed by easycoding on August 13, 2020 Rating: 5

No comments:

Powered by Blogger.