Animated Social Media Share Buttons
Modern social media sharing buttons with smooth animations and interactive effects, perfect for blog posts and content sharing.
Responsive Design
Yes
Dark Mode Support
No
lines
324
Browser Compatibility
Chrome · Firefox · Safari · Edge
Live Preview
Interact with the component without leaving the page.
Overview
Modern social media sharing buttons with smooth animations and interactive effects, perfect for blog posts and content sharing.
How to use
- Copy the HTML markup into your page.
- Paste the CSS into your stylesheet and ensure the selectors match your markup.
- Paste the JavaScript and load it after the markup.
- Adjust spacing, colors, and text to match your design system.
Customization tips
- Rename class names to avoid collisions with your existing CSS.
- Replace hard-coded colors with CSS variables for theming.
- Verify the layout at 320px, 768px, and 1024px widths.
HTML
36
lines
CSS
195
lines
JavaScript
93
lines
<div class="social-share-container">
<div class="social-share-demo">
<div class="share-header">
<h3>Share this content</h3>
</div>
<div class="social-buttons" id="socialButtons">
<button class="social-btn facebook" data-platform="facebook">
<span class="btn-icon">f</span>
<span class="btn-text">Share</span>
</button>
<button class="social-btn twitter" data-platform="twitter">
<span class="btn-icon">t</span>
<span class="btn-text">Tweet</span>
</button>
<button class="social-btn linkedin" data-platform="linkedin">
<span class="btn-icon">in</span>
<span class="btn-text">Share</span>
</button>
<button class="social-btn whatsapp" data-platform="whatsapp">
<span class="btn-icon">w</span>
<span class="btn-text">Send</span>
</button>
<button class="social-btn copy-link" data-platform="copy">
<span class="btn-icon">🔗</span>
<span class="btn-text">Copy</span>
</button>
</div>
<div class="share-message" id="shareMessage"></div>
</div>
</div>
Browser Compatibility
Chrome
>= 50
Firefox
>= 45
Safari
>= 10
Edge
>= 15