Open In App

Instagram Logo/Icon using HTML and CSS

An animated representation of the Instagram logo using HTML and CSS is displayed as a colorful circular shape with a radial gradient background. Hovering over the logo triggers a subtle upward movement. The white highlights and the text “Instagram Logo” add to the visual appeal and provide context. The project showcases a visually appealing and interactive representation of the Instagram logo using HTML and CSS.

Preview Image: Let us have a brief look at how the Logo/Icon will look like



Preview

Approach to create Instagram Logo/Icon

Example: Illustration of creating an Instagram logo using HTML and CSS




<!-- Instagram logo HTML Code -->
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0">
    <title>INSTAGRAM</title>
    <link rel="stylesheet" href="style.css">
</head>
 
<body>
    <div class="box">
        <div class="instagram">
            <span></span>
            <p>
                Instagram Logo
            </p>
        </div>
    </div>
</body>
 
</html>




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    background-color: #232323;
    overflow: hidden;
}
 
.box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
 
.instagram {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 110%,
            #ffdb8b 0%,
            #ee653d 25%,
            #d42e81 50%,
            #a237b6 75%,
            #3e57bc 100%);
    border-radius: 37px;
    box-shadow: 0px 15px 40px 1px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .2s linear;
}
 
.instagram:hover {
    transform: translateY(-10px);
}
 
.instagram::after {
    content: "";
    position: absolute;
    top: 23px;
    right: 22px;
    border: 7px solid #fff;
    height: 100px;
    width: 100px;
    border-radius: 25px;
}
 
.instagram::before {
    content: "";
    position: absolute;
    top: 49px;
    right: 49px;
    border: 8px solid #fff;
    height: 43px;
    width: 45px;
    border-radius: 50%;
}
 
span {
    position: absolute;
    display: block;
    top: 40px;
    right: 40px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
}
 
p {
    position: absolute;
    color: #fff;
    font-family: "poppins";
    margin-top: 250px;
    letter-spacing: 1.2px;
    font-size: 20px;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 8px;
    cursor: pointer;
}

Output:



OutputL


Article Tags :