Bootstrap snippet and html example. Social Sharing Buttons with counter

Bootstrap 3.1.0 snippet "Social Sharing Buttons with counter" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: social, buttons

HTML code

Clean, semantic HTML that powers this Bootstrap 3.1.0 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<h4 class="text-center">find more in <a href="http://www.jquery2dotnet.com/" target="__blank">jquery2dotnet</a></h4>
<div class="container bootstrap snippets bootdey">
    <div class="row social">
        <div class="col-md-3">
            <a href="#">
                <div class="panel panel-default twitter">
                    <div class="panel-body">
                        <small class="social-title">Twitter</small>
                        <h3 class="count">
                            12,000</h3>
                        <i class="fa fa-twitter"></i>
                    </div>
                </div>
            </a>
        </div>
        <div class="col-md-3">
            <a href="#">
                <div class="panel panel-default google-plus">
                    <div class="panel-body">
                        <small class="social-title">Google+</small>
                        <h3 class="count">
                            13,000</h3>
                        <i class="fa fa-google-plus"></i>
                    </div>
                </div>
            </a>
        </div>
        <div class="col-md-3">
            <a href="#">
                <div class="panel panel-default facebook-like">
                    <div class="panel-body">
                        <small class="social-title">Facebook Like</small>
                        <h3 class="count">
                            14,000</h3>
                        <i class="fa fa-facebook"></i>
                    </div>
                </div>
            </a>
        </div>
        <div class="col-md-3">
            <a href="#">
                <div class="panel panel-default visitor">
                    <div class="panel-body">
                        <small class="social-title">Website Visitor</small>
                        <h3 class="count">
                            15,000</h3>
                        <i class="fa fa-user"></i>
                    </div>
                </div>
            </a>
        </div>
    </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 3.1.0 to keep the design, spacing, and responsiveness consistent.

body { margin-top:20px; }
.social-title {text-transform: uppercase;letter-spacing: 1px; }
.count { font-size: 37px;margin-top: 10px;margin-bottom: 10px; }
.fa { font-size: 100px;text-align: right;position: absolute;top: 7px;right: 27px;outline: none; }
.social .panel { color:#fff;text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.social a { text-decoration:none; }
.twitter { background-color:#00acee; }
.google-plus { background-color:#dd4b39; }
.facebook-like { background-color:#3b5998; }
.visitor { background-color:#eb6d20; }

Javascript/Jquery code

Lightweight JS to power any interactions this snippet needs. Drop it under your scripts (after Bootstrap 3.1.0) to mirror the live demo.

// Animate the element's value from x to y:
$({ someValue: 0 }).animate({ someValue: Math.floor(Math.random() * 3000) }, {
    duration: 3000,
    easing: 'swing', // can be anything
    step: function () { // called on every step
        // Update the element's text with rounded-up value:
        $('.count').text(commaSeparateNumber(Math.round(this.someValue)));
    }
});

function commaSeparateNumber(val) {
    while (/(d+)(d{3})/.test(val.toString())) {
        val = val.toString().replace(/(d)(?=(ddd)+(?!d))/g, "$1,");
    }
    return val;
} 

Similar snippets

Bootstrap example and template. Social Media Button Design

Social Media Button Design

Bootstrap example and template. Social media collage

Social media collage

Bootstrap example and template. vs voting system

vs voting system

Bootstrap example and template. Colored Social icons

Colored Social icons

Bootstrap example and template. Ecommerce checkout with customer info and order summary

Ecommerce checkout with customer info and order summary

Bootstrap example and template. bs4 Footer

bs4 Footer

Bootstrap example and template. pricing tables with header with color

pricing tables with header with color

Bootstrap example and template. modern price section

modern price section

FAQ

How do I use this snippet?

Include Bootstrap 3.1.0, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 3.1.0.

Bootstrap example and template. Social Sharing Buttons with counter

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 10.3K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 3.1.0

<link rel='stylesheet' href='https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css'>

<script src='https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js'></script>

This code example is based on bootstrap 3.1.0 and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This code example can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working