Profile Card 2 With Hover Effect using HTML and CSS

In this tutorial we will see how to make a Profile Card 2 With Hover Effect using HTML and CSS. Pure CSS is used for this purpose, Both HTML and CSS code is given, feel free to use it in your projects.

HTML Code

HTML Code is given below.

<div class="box">
    <h1 class="title">Elon Musk</h1>
    <div class="social">
        <i class="icon fab fa-instagram"></i>
        <i class="icon fab fa-twitter"></i>
        <i class="icon fab fa-facebook-square"></i>
    </div>
</div>

CSS Code

CSS Code is given below.

body
{
    background-color: #555;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Barlow Condensed' , sans-serif;
}
.box
{
    height: 250px;
    width: 250px;
    border-radius: 10px;
    padding: 5px 10px;
    background-color: #000;
    box-sizing: border-box;
    background-image: url('picture.png');
    background-size: 100%;
    background-repeat: no-repeat;
    transition: 1s;
    box-shadow: 0px 0px 5px 1px #000;
    position: relative;
    cursor: pointer;
}
.title
{
    text-align: center;
    color: #ccc;
    opacity: 0;
    font-size: 25px;
    transition: 1s;
}
.social
{
    position: absolute;
    bottom: 0px;
    left: 0px;
    text-align: center;
    width: 100%;
    padding: 5px 0px;
}
.icon
{
    color: #ccc;
    margin: 0px 5px;
    font-size: 14px;
    transition: 1s;
    opacity: 0;
}
.box:hover
{
    background-size:300px;
    background-position: -200% 50%;
    box-shadow: 
    0px 0px 5px 2px #000000,
    0px 0px 10px 10px #ff05e2;    
}
.box:hover .title
{
    opacity: 1;
}
.box:hover .icon
{
    opacity: 1;
}

Demo

Video Tutorial

Watch our video tutorial on how to make a Profile Card 2 With Hover Effect using HTML and CSS.

Social Media Menu with Popup Tooltip using HTML and CSS Horizontal Navigation Menu with HTML and CSS Responsive Sidebar Menu with CSS and JavaScript Cool CSS Button with Hover Animation Pure CSS Custom Radio Buttons Custom Emoji Radio Buttons with CSS Color Picker Design with HTML CSS and JavaScript Custom Radio Buttons with CSS Engraved HTML Buttons With CSS Neumorphic Buttons Design with CSS Cool Profile Card Design with HTML CSS Neumorphic Search Bar Design with HTML and CSS Simple Login Form with Placeholder Animation Pure CSS Button with Folded Corner Background Color Change Slider with HTML CSS and JavaScript 404 Page Not Found Template Design with HTML and CSS Movies Blog Card Design with HTML and CSS Simple CSS Border Animation with before and after Selector Custom Social Select Dropdown Menu with CSS and JavaScript Facebook Offline and Online Notification with CSS and JS New Year 2022 Text Animation with CSS and JS Change Placeholder Color using CSS Custom Select Tag DropDown with CSS and JavaScript Simple Price Range Slider With HTML CSS and JavaScript Profile Card With Hover Effect using HTML and CSS Circle With Two Colors using CSS Simple FAQ Accordion With HTML CSS and JavaScript