Home

Awesome

darktooltip

bower badge

A simple customizable tooltip with confirm option and effects

Usage

<div style="padding:200px;">
	<a href="#" id="example" data-tooltip="Hello world 1">Example 1</a>
	<a href="#" id="light" data-tooltip="Hello world 2">Example 2</a>
</div>
 
<script>
$(document).ready( function(){
	
	//Basic
	$('#example').darkTooltip();
	
	//With some options
	$('#light').darkTooltip({
		animation:'flipIn',
		gravity:'west',
		confirm:true,
		theme:'light',
		arrow:true
	});
});
</script>

Options

OptionValuesDefault
opacity0 – 10.9
contentTooltip messageempty
sizesmall, medium, largemedium
gravitysouth, west, north, eastsouth
themedark, lightdark
triggerhover, clickhover
animationnone, flipIn, fadeInnone
confirmtrue, falsefalse
yesLabel for ‘Yes’ option‘Yes’
noLabel for ‘No’ option‘No’
finalMessageA message that appears at the end of the action for the confirm
finalMessageDurationDuration of the final message in ms1000
onYesFunction that is triggered when clicking ‘Yes’ on confirmempty
onNoFunction that is triggered when clicking ‘No’ on confirmempty
arrowtrue, falsetrue

Demo and examples

rubentd.com/darktooltip