Java Script Bubbles for extra interactions on your website.
As easy as calling a JavaScript function. See it in action
Tested for: Firefox, Chrome and Safari
Not tested for mobile support yet.
- Dynamically add bubbles to your website;
- Add custom bubbles (using FontAwesome!);
- Add start and hover animations to each bubble;
- Add notifications and tool-tips!
- Add FastBubbles (just give the name and url):
-- Facebook
-- Twitter
-- Instagram
-- Linkedin
- Jquery
- FontAwesome
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../css/main.css">
<script src="../js/jsbubbles.js"></script>
<div class="js-bubbles">
<div class="bubbles">
<!--JS will add the bubbles here!-->
</div>
</div>
//Start
var jsbubbles = new JSBubbles({<bubbles>},{animations});
Fast example for javascript:
var jsbubbles = new JSBubbles({
git: 'https://github.com/tiagosantos967',
linkedin: 'https://nl.linkedin.com/in/tiago-santos-1b04a5118',
CUSTOM:{
color: '#ecc5a8',
img: 'fa-ellipsis-h ',
url: '#'
}
},{
start:{
name: 'animation-enlarge-top',
time: 1500,
delay: 100
},
hover:{
name: 'transition-enlarge-top'
}
});
Add extra bubbles:
jsbubbles.addBubbles({
linkedin: 'https://nl.linkedin.com/in/tiago-santos-1b04a5118'
} , {
start:{
name: 'animation-bounce',
time: 1500
} //you can add an hover animation too.
});
Add notification number and tooltips:
jsbubbles.addNotification('facebook',1);
jsbubbles.setTooltipText('facebook','hello world facebook');