Code is here for Floating Image


<style>
    *{
        margin0;
        padding0;
        box-sizingborder-box;
    }
    body{
        background-color#2a2a2a;
    }
    .wrapper{
        displayflex;
        min-height100vh;
        justify-contentcenter;
        align-itemscenter;
        flex-directioncolumn;
    }
    img{
       width100%;
       heightauto;
    }
    .avatar{
        width200px;
        height200px;
        border-radius50%;
        border3px solid white;
        overflowhidden;
        /* box-shadow: 1px 3px 1px white; */
        /* transform: translateY(0px); */
        animation: float 3s ease-in-out infinite;
    }
    h1{
        colorwhite;
    }
    @keyframes float {
        0%{
            transformtranslateY(0px);
            box-shadow0px 2px 4px 0px white;
        }
        50%{
            transformtranslateY(-20px);
            box-shadow0px 5px 10px 0px rgb(218198198);;
        }
        100%{
            transformtranslateY(0px);
            box-shadow0px 2px 4px 0px white;
        }
    }
</style>
<body>
    <div class="wrapper">
        <div class="avatar">
            <img src="avatar.png" alt="" srcset="">
        </div>
        <div class="text">
            <h1>Ruhul Amin</h1>
        </div>
    </div>
</body>