THEMETRIAL

Floating Social Share Bar In Pure JavaScript – Sharerbox

Author:AstudilloJuanF
Views Total:0 views
Official Page:Go to website
Last Update:March 2, 2021
License:MIT

Preview:

Floating Social Share Bar In Pure JavaScript – Sharerbox

Description:

Sharerbox is an easy-to-use yet fully configurable floating (sticky) social share bar that can be placed either on the left or on the right side of the screen.

How to use it:

1. Download and insert the main JavaScript sharerbox.js into the document.

<script src="https://www.cssscript.com/sharerbox.js"></script>

2. Add social networks to the social share bar. Supported social networks:

  • Twitter
  • Facebook
  • WhatsApp
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Telegram
  • Email
  • Direct Link
sharerboxIcons('facebook twitter whatsapp pinterest linkedin reddit tumblr telegram');

3. Initialize the sharerbox and done.

sharerSetup();

4. Possible parameters to config the floating social share bar.

  • behavior: open the social share page in a popup or in a new tab
  • position: determine the position of the floating social share bar, ‘left’ or ‘rignt’
  • color: the color of the toggle button
  • visibility: hide the floating social bar or not
  • shareDescription: define your own message or website description here
sharerSetup(behavior = 'popup', position = 'right', color = 'black', visibility = 'hidden', shareDescription = '')


Source link

Add comment

NOTE :

All visitors can share my site’s content on their blogs, sites, and social networks to enrich the content

Only share the source www.themetrial.com

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.