Skip to main content

Clip Image On Text Using HTML & CSS | CSS Overlay Text On Image | background-clip text effect-CSS

   In this video, we will create an awesome text effect CSS only. This video on how to clip image on text using -webkit-background-clip. For a preview click on  Demo If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! 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 >How to clip image on text</ title >      <!-- style.css -->     < link   rel = "stylesheet"   href = "style.css" > </ head > < body >

Butterfly Hexagon Icon Hover Effects | Icon Hover Animation CSS | Social Icon Hover Effect In CSS


In this video, we will create a butterfly hexagon icon hover effect using only HTML & CSS.

An amazing social media icon hover effect that will blow your mind and the user attract easily with this.

If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files.
Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇

HTML

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Butterfly Hexagon Icon Hover Effects</title>
    <!-- my css -->
    <link rel="stylesheet" href="style.css">
    <!-- fontawesome cdn -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css" integrity="sha512-HK5fgLBL+xu6dm/Ii3z4xhlSUyZgTT9tuc/hSrtw6uzJOvgRr2a9jyxxT1ely+B+xFAmJKVSTbpM/CuL7qxO8w==" crossorigin="anonymous" />
</head>

<body>
    <div class="hexagon-wrapper">
        <div class="hexagon">
            <class="fab fa-facebook"></i>
        </div>
    </div>
    <div class="hexagon-wrapper">
        <div class="hexagon">
            <class="fab fa-twitter"></i>
        </div>
    </div>
    <div class="hexagon-wrapper">
        <div class="hexagon">
            <class="fab fa-instagram"></i>
        </div>
    </div>
</body>

</html>

CSS

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background: linear-gradient(18deg, #6441a5, #2a0845);
}

.hexagon-wrapper {
    margin: auto;
    display: flex;
    width: 200px;
    height: 200px;
}

.hexagon {
    position: relative;
    width: 46%;
    height: 80%;
    margin: auto;
    columns: #fff;
    background: linear-gradient(-180deg, #fff, #fda3b2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    cursor: pointer;
}

.hexagon i {
    z-index: 1;
    margin: auto;
    font-size: 50px;
    color: transparent;
    background: linear-gradient(45deg, #6441a5, #2a0845);
    background-clip: text;
    -webkit-background-clip: text;
}

.hexagon::before,
.hexagon::after {
    position: absolute;
    content: "";
    background: inherit;
    height: 100%;
    width: 100%;
    transition: 0.5s;
    transform-origin: center;
}

.hexagon::before {
    transform: rotateZ(60deg);
}

.hexagon::after {
    transform: rotateZ(-60deg);
}

.hexagon:hover,
.hexagon:hover::before,
.hexagon:hover::after {
    border-radius: 50px;
    transition: 0.5s;
}

Subscribe to me on YouTube

Like & Comment on my video on YouTube & press the bell icon to get notification first.

Follow me on Instagram

Comment down any query if you have.

Comments

Popular posts from this blog

Play GIF On Hover | Animate GIF on hover | How To Animate GIF On Hover In CSS

In this video, we will create a hover animated GIF using HTML & CSS. When we hover on the image box the image change into a GIF image. You can easily create this with only CSS. For a preview click on  Demo If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! 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 > Play GIF on hover </ title >      <!-- style -->      < link  rel = " stylesheet "   href = " st

Bootstrap 5 Sidebar Navigation | Bootstrap Side Navbar With Responsive | Speed Code UI Design

In this video, we will create a responsive sidebar using Bootstrap 5 with an easy trick, most of the people stuck in this to how to create this type of sidebar using Bootstrap. For a preview click on   Demo For more about bootstrap 5 click here If you want to get the complete source code in a zip file then click the "Fork me on GitHub" button below that will redirect you to my GitHub account where you found all my source code files. Copy Code(select code part and copy using "CTRL + C" or using R Click to mouse)🡇 HTML <! DOCTYPE  html > < html  lang = " en " > < head >      < meta  charset = " UTF-8 " >      < meta  name = " viewport "   content = " width=device-width, initial-scale=1.0 " >      < title > Bootstrap 5 Side Bar Navigation </ title >      <!-- bootstrap 5 css -->      < link  rel = " stylesheet "   href = " https://stackpath.bootstrapcdn.com/bootst

Login System Using NodeJS & MySQL Database | 2020 latest video

  ➣ In this video, we will create a login system using Node.JS & MySQL database ➣  Download Source Code