3D Social Media Icons with Follower Count using HTML & CSS

If you want to make your social media links more engaging and stylish, a 3D hover effect with follower counts is a perfect choice. This design combines minimal UI, smooth animations and creative interactions to display your social media presence in a professional way.

The cards not only showcase the platform logos but also reveal follower counts and direct links on hover, making them both functional and visually appealing.

HTML Structure

We start with a clean HTML structure using an unordered list for Social Media Icons.

<div class="main-container">
    <ul class="icon-list">
        <li class="item">
            <span class="icon-box"><span class="icon bi bi-instagram"></span></span>
            <span class="count">80K</span>
            <a href="#">Instagram</a>
        </li>
        <li class="item">
            <span class="icon-box"><span class="icon bi bi-youtube"></span></span>
            <span class="count">50K</span>
            <a href="#">Youtube</a>
        </li>
        <li class="item">
            <span class="icon-box"><span class="icon bi bi-facebook"></span></span>
            <span class="count">90K</span>
            <a href="#">Facebook</a>
        </li>
        <li class="item">
            <span class="icon-box"><span class="icon bi bi-pinterest"></span></span>
            <span class="count">20K</span>
            <a href="#">Pinterest</a>
        </li>
        <li class="item">
            <span class="icon-box"><span class="icon bi bi-linkedin"></span></span>
            <span class="count">60K</span>
            <a href="#">Linkedin</a>
        </li>
    </ul>
</div>

Each social media item is wrapped inside a list element containing three main parts:

  1. Icon Box: A circular container that holds the Bootstrap social media icon.
  2. Follower Count: A hidden element that appears with a sliding animation when hovered.
  3. Clickable Link: A direct link to the social media profile, smoothly revealed after interaction.

This structure ensures that every social media platform has its own dedicated icon, follower stats and redirect link in a clean organized way.

CSS Styling & Animation

The real magic comes from CSS. Here’s what makes this effect stand out for social media icons:

@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

.main-container {
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    min-width: 320px;
}

.icon-list {
    display: flex;
    gap: 15px;
    font-family: 'Calibri';
}

.item {
    position: relative;
    list-style: none;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: 0.5s ease-in-out;
    color: rgb(238, 238, 238);
    border: 1px solid rgba(111, 111, 111, 0.37);
}

.item:hover .icon-box {
    transform: rotateX(60deg) perspective(550px) translateY(2px);
    box-shadow: 0px 10px 2px rgba(98, 98, 98, 0.384);
}

.icon {
    transition: transform .3s;
}

.item:hover .icon {
    transform: translate3d(0px, 0px, 15px) rotateX(-75deg);
}

.count {
    position: absolute;
    left: 50%;
    opacity: 0;
    top: 0;
    transition: .6s;
    padding: 4px 10px;
    border-radius: 5px;
    visibility: hidden;
    background: #161616;
    color: rgb(255, 255, 255);
    transform: translate(-50%, 0px);
}

.count::after {
    content: '\F229';
    position: absolute;
    left: 50%;
    bottom: 0;
    color: #161616;
    font-family: 'bootstrap-icons';
    transform: translate(-50%, 65%);
}

.item:hover .count {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50px);
}

.item a {
    position: absolute;
    bottom: 0;
    opacity: 0;
    left: 50%;
    color: white;
    transition: .5s;
    padding: 10px 0;
    visibility: hidden;
    text-decoration: none;
    transform: translate(-50%, 0);
}

.item:hover a {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 40px);
}

.item a:hover {
    text-decoration: underline;
}
  • Flexbox Layout → Ensures all icons are aligned horizontally with equal spacing, making it responsive for any screen size.
  • 3D Transformations → On hover, the icon box rotates with a perspective effect, giving it a realistic 3D card flip look.
  • Follower Count Animation → Each count starts hidden, then smoothly slides upward with opacity transition when the user hovers.
  • Link Reveal → The profile link fades in from below, adding another layer of interactivity.
  • Hover Shadows → A soft shadow appears under the rotated icon to make it feel lifted from the background.

By combining transitions, transforms and opacity effects, the design achieves a professional 3D Social Media Icons animation that feels smooth and modern.

Use Cases

This 3D hover social media widget can be used in many ways:

  • As a social media section in personal portfolios.
  • In agency websites to showcase brand presence across platforms.
  • For blogs or business sites to promote social channels and attract more followers.
  • In footer sections as an alternative to static social icons.

It helps increase user engagement by not only showing where to follow but also displaying real-time credibility with follower numbers.

This 3D hover effect with social media icons and follower count is a creative way to make your website more interactive and appealing. Using just HTML and CSS, you can create a visually stunning social media section that looks modern and enhances user interaction.

With small tweaks, you can add your own branding colors, follower numbers and links to make it fully personalized for your website.

Leave a Comment

Scroll to Top