2 jQuery Share Buttons
Create “Share” buttons with jQuery, from basic functionality to advanced UI effects. The classic window.open() method, which dynamically generates the share URL, is covered. To enhance UX, animated panels and “exploding” icons managed by .animate() and .fadeToggle() are demonstrated. Advanced examples include asynchronously fetching share counts with $.ajax(), creating full-featured and engaging components.
Examples
Collapsible Social Media Share Icons
A compact “Share” button that smoothly expands downwards upon clicking, revealing a list of social networks with icons and text.
See the Pen Collapsible Social Media Share Icons.
Social Media Share Icons Animation
Initially a round “Share” button, upon clicking it morphs into a close icon, the panel expands to the left, and a chain of round social icons sequentially and bouncily pops onto the screen.
See the Pen Social Media Share Icons Animation.