Minimal Circular Pop Out Menu Plugin with jQuery - Popper

File Size: 12.3 KB
Views Total: 9508
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Minimal Circular Pop Out Menu Plugin with jQuery - Popper

Just another jQuery plugin for producing an animated, circular pop out menu which can be used as a social share widget on your webpage.

See also:

How to use it:

1. Load the necessary jQuery library and jQuery easing plugin in the web page.

<script src="/path/to/jquery-1.11.3.min.js"></script>
<script src="/path/to/jquery.easing.min.js"></script>

2. Load the jQuery Popper plugin's JS and CSS files after jQuery library.

<link rel="stylesheet" href="dist/popper.css">
<script src=".dist/popper.js"></script>

3. Create a pop out menu from a group of html links.

<div id="pop">
  <a href="#" data-primary></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
  <a href="#"></a>
</div>

4. Add custom background images to the menu links.

#pop .primary {
  background-image: url(share.jpg);
  background-size: contain;
  border-radius: 50%;
  width: 75px;
  height: 75px;
  margin: auto;
  display: block;
}

#pop .secondary {
  background-image: url(twitter.png);
  background-size: contain;
  height: 32px;
  width: 32px;
  display: block;
}

5. Call the function on the top element and we're done.

$('#pop').popper();

This awesome jQuery plugin is developed by ajwhite. For more Advanced Usages, please check the demo page or visit the official website.