CVShare.js: Minimal Javascript Social Share Plugin

Easily add social share buttons to your website or blog with CV Share, a lightweight JavaScript plugin. Choose from popular social media platforms and customize...

About the Plugin

CV Share is a plugin that allows you to share your content on social media. It is a simple plugin that is written in vanilla Javascript.It's very lightweight; the combined size of both CSS and JS files is under 5 KB.

Fork on Github

Getting Started

Include the CSS and JS files in your HTML file.

<link rel="stylesheet" href="https://cdn.codervortex.com/plugin/cv-share/cvshare.min.css" />
<script src="https://cdn.codervortex.com/plugin/cv-share/cvshare.min.js"></script>

Then add the following html code wherever you want to render the plugin in your page.

<div class="cv-share"></div>

You can override the default options like this:

cvShareOptions = {
iconColor: "#f99",
onHoverColor: "#000"
};

Available Options

OptionDetails
shapeOptionalThe shape of the icons. default value: empty
iconColorOptionalThe color of the icons at the normal state. default value: empty
onHoverColorOptionalThe color of the icons on mouse over. default value: empty

Available Values

shape

  • [empty] (for round shape)
  • square

iconColor

  • [Any Color Code] (HEX, RGBA, etc..)
  • [empty] (for default color)

onHoverColor

  • [Any Color Code] (HEX, RGBA, etc..)
  • [empty] (for default color)