Coder Social home page Coder Social logo

umade / darktooltip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rubentd/darktooltip

0.0 2.0 0.0 359 KB

Simple customizable tooltip with confirm option and 3d effects

Home Page: rubentd.com/darktooltip

License: MIT License

CSS 60.65% HTML 12.02% JavaScript 27.32%

darktooltip's Introduction

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'
	});
});
</script>

###Options

Option Values Default
opacity 0 – 1 0.9
content Tooltip message empty
size small, medium, large medium
gravity south, west, north, east south
theme dark, light dark
trigger hover, click hover
animation none, flipIn, fadeIn none
confirm true, false false
yes Label for ‘Yes’ option ‘Yes’
no Label for ‘No’ option ‘No’
finalMessage A message that appears at the end of the action for the confirm
finalMessageDuration Duration of the final message in ms 1000
onYes Function that is triggered when clicking ‘Yes’ on confirm empty
onNo Function that is triggered when clicking ‘No’ on confirm empty

###Demo and examples rubentd.com/darktooltip

darktooltip's People

Contributors

jmjurado23 avatar rubentd avatar tonypine avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.