Skip to main content

SideBar PLUS Icon with animation

SideBar PLUS Icon with Animation || POP UP icon Box || Icon Interaction in HTML 



                Here is the best code for pop up icon box with the animation effect. These icons will be use in the many website for users attraction. Do the code now..!

#CODE : -- 

   <!DOCTYPE html>
<html>
    <head>
        <title>Page Title</title>
        <style type="text/css">
            * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    --light-color: #f8f9fd;
    background: #FF6347;
}


.container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 200px;
    height: 200px;
    background: var(--light-color);
    box-shadow: inset 6px 6px 10px 0 rgba(0, 0, 0, .2),
    inset -6px -6px 10px 0 rgba(255, 255, 255, .5);
    border-radius: 15%;
}

button, label {
    border: 0;
    background: none;
    cursor: pointer;
    color: #004466;
    -webkit-tap-highlight-color: transparent;
}


label {
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    display: none;
}

button:focus {
    outline: none;
}

label span, button span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

label:active span, button:active span {
    transition: .2s;
    
    width: 100%;
    height: 100%;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: inset 8px 8px 16px 0 rgba(0, 0, 0, .2), 
    inset -8px -8px 16px 0 rgba(255, 255, 255, .4);
}

.item {
    width: 40%;
    height: 40%;
    border-radius: 50%;
    transition: .5s;
    font-size: 0;
}

.container .item:nth-of-type(1) {
    transform: translate(125%, 125%);
}
.container .item:nth-of-type(2) {
    transform: translateY(125%);
}
.container .item:nth-of-type(3) {
    transform: translateX(125%);
}



#show:checked ~ .item {
    font-size: 1.5rem;
    transform: translate(0, 0);
    background: linear-gradient(-45deg, #8fcdff1a, rgba(255, 255, 255, .2));
    box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, .2),
    -8px -8px 5px 0 rgba(255, 255, 255, .2);
}


#show ~ label span svg {
    font-size: 1.5rem;
}

#show ~ label span svg:last-of-type {
    font-size: 0;
}


#show:checked ~ label span svg {
    font-size: 0;
}

#show:checked ~ label span svg:last-of-type {
    font-size: 1.5rem;
}

.container .item.show {
    transform: translate(0, 0);
    z-index: 100;
    font-size: 1.5rem;
    background: linear-gradient(-45deg, #8fcdff1a, rgba(255, 255, 255, .2));
    box-shadow: 5px 5px 15px 0 rgba(0, 0, 0, .2),
    -8px -8px 5px 0 rgba(255, 255, 255, .2);
}

.item.show {
    display: block;
    transition: .2s;
}
        </style>
    </head>
    <body>
        <div class="container">
        <input type="checkbox" name="show" id="show" />
        <button class="item">
            <span>
                <i class="fa fa-image"></i>
            </span>
        </button>
        <button class="item">
            <span>
                <i class="fa fa-video"></i>
            </span>
        </button>
        <button class="item">
            <span>
                <i class="fa fa-sticky-note"></i>
            </span>
        </button>
        <label for="show" class="item show">
            <span>
                <i class="fa fa-plus"></i>
                <i class="fa fa-times"></i>
            </span>
        </label>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/js/all.min.js" integrity="sha256-KzZiKy0DWYsnwMF+X1DvQngQ2/FxF7MF3Ff72XcpuPs=" crossorigin="anonymous"></script>
    </body>
</html>

#OUTPUT : --

                                     








Comments

The Most Populer

How to Generate Barcode || code for Barcode

|| Random Barcode Generator || Barcode on the basis length of text || #CODE :                 Barcode.html ==>        <html>        <head>            <title>Barcode Generator</title>            <link rel="stylesheet" href="Barcode.css">     </head>     <body>         <div>Barcode Generator</div>         <input type="text" placeholder="Type..."/>         <button onclick="generate()">Generate Barcode</button>           <svg id="barcode"></svg>           <script src="https://cdnjs.cloudflare.com/ajax/libs/jsbarcode/3.11.0/JsBarcode.all.min.js"></script>           <script>               JsBarcode("#barcode","#Hello",{                   background:"#161748",                   lineColor:"#ffffff"               });               function generate(){                   var val = docu

Design 3D Block with hover animation

        How To Design The 3D Block With Hover Effect. Here is the code of How to design the 3D block design by using only html and css.                          By using html-css you can make a lots of designs and animations. Few done by me                          and   somewhat expect from you . Try to watch all the videos by codoblog. And stay                                              connected.                 CODE -                         <html>           <head> <style type="text/css"> body{ background-color: black; } .wrap{ margin-top: 150px; perspective:1000px; perspective-origin:50% 50%; } .cube{ margin: auto; position: relative; height: 200px; width: 200px; transform-style:preserve-3d; } .cube > div{ position:absolute; box-sizing:border-box; padding: 10px; height: 100%; width: 100%; opacity: 0.7; background-color: #000; border: solid 1px #eeeeee; color: r

Code for icon design | camera icon code | html-css code

 Camera ICON creation || Code for the camera icon  Here is the code for camera icon design..try with your efforts..! ICON #CODE : >>                <!DOCTYPE html> <html> <head> <title>Camera Icon Creation</title> <style type="text/css"> body{ margin:0; background-color: lightblue; } .outer{     width: 50%;     height: 100vh;     display: flex;     justify-content: center;     align-items: center;     margin: 0 auto; } .body{     background-color: white;     border-radius: 30%;     width: 11rem;     height: 11rem;     position: relative;     box-shadow: 1px 1px 6px 1px slategrey; } .red{     border-radius: 50%;     background-color: crimson;     width: 10px;     height: 10px;     position: absolute;     top: 10%;     left: 10%;     margin: 4px; } .flash{     width: 20%;     height: 8px;     border-radius: 25% / 30%;     background-color: #ccc;     box-shadow: inset 1px 1px 6px 1px slategrey;     position: absolute;