Funkytooltips - A jQuery plugin to create funky tooltips

Overview

Funkytooltips

Funkytooltips is a jQuery plugin to generate tooltips based on the data contained in HTML tags.

Installation

The plugin can be installed using npm and is meant to be used in a project that is built using a bundler like Webpack.

Otherwise, after manually downloading the package, the plugin can be built like so:

npm i
npm run build

The generated dist/bundle.js file can then be imported in a classical fashion, along with the default css file src/css/jquery.funckytooltips.css.

Quickstart

The plugin lets you add tooltips to your markup with just one line (or so) of code.

$(".my-text").funkytooltips({
   // more config if required
});

A tooltip will now display when hovering the following tags contained in the elements identified by the .my-text query:

  • <a/>
  • <img/>
  • <acronym/>

What each tooltip will display depends on the tag considered:

  • <a/>: the tooltip will diplay the title and the href attribute
  • <img/>: the tooltip will diplay the alt and the src attribute
  • <acronym/>: the tooltip will diplay the title attribute

Configuration

The tooltips behaviour can be configured passing to the plugin the following bits of information:

  • delay (Number): the time expressed in milliseconds before the tooltip appears after a tag is hovered (default 300)

  • cssClass (String): the css class to apply to the tooltip element. By default this is funky-tt

  • deltaX and deltaY (Number): the offset in px from the cursor position (default 15)

  • displayLocation (Boolean): whether or not to display the location of the tooltipped resource (href in case of <a/> and src in case of <img/>) (default true)

  • locationLength (Number): when to truncate the location (default: 30 characters)

  • displayMethod (String): what displacement strategy to use (defaul: basic). Other possible values are fadeIn and slideDown

HTML structure

In case you wanted to style the tooltip youself (and hence discard the file src/css/jquery.funckytooltips.css), it's very useful to bear in mind its html structure. Here it is:

<div id="some-randomly-generated-id" class="funky-tt">
   <span class="description">...</span>
   <span class="location">...</span>
</div>

Demo

After building the plugin as explained in the Installation section, you can have a look at demo/index.html for a practical example of how to use the plugin.

You might also like...

Internationalisation - A jQuery-Plugin to replace alternate version of text for client side internationalization.

Project status Use case A jQuery plugin to replace alternate version of text for client side internationalisation. Content [TOC] Installation Classica

Nov 30, 2022

Fallblatt - fallblatt is a lightweight jQuery plugin for animating split flap displays

Fallblatt - fallblatt is a lightweight jQuery plugin for animating split flap displays

fallblatt Ever wondered about those big legacy displays in aiport terminals and train stations? They are called split-flap displays (Fallblattanzeige

Oct 11, 2022

Jquery-anyimagecomparisonslider-plugin - The any Image Comparison Slider is an extremely versatile yet slim slider for comparing images. You have a lot of options to configure the slider and it works just about everywhere.

any Image Comparison Slider (jquery-anyimagecomparisonslider-plugin ) Description The any Image Comparison Slider is an extremely versatile yet slim s

Sep 12, 2022

HTML 5 & Bootstrap Jquery Form Validation Plugin

HTML 5 & Bootstrap Jquery Form Validation Plugin HTML 5 & Bootstrap 5 & Jquery 3 jbvalidator is a fresh new jQuery based form validation plugin that i

Dec 6, 2022

jQuery library to validate html forms. compatible with bootstrap v4 and bootstrap v3

jQuery library to validate html forms. compatible with bootstrap v4 and bootstrap v3

jQuery form validation jQuery form validation is a library that helps you to validate your HTML form, it's completable with both Bootstrap 3 and Boots

Jun 10, 2021

jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.

jBox jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more. Demo: https://stephanwagner.

Dec 15, 2022

Facebook-style tooltips plugin for jQuery

tipsy Facebook-style tooltip plugin for jQuery (c) 2008-2010 Jason Frame ([email protected]) Released under The MIT License. Description: tip

Oct 15, 2022

jQuery plugin to add 360 rotatable bubble style tooltips

Sorry, this project is no longer maintained. grumble.js Add a bubble to any element; configure its rotation on a 360 degree axis and define its distan

Nov 9, 2022

Pebble - A free funky formalicious icon set for React (& plain ol' SVG & PNG)

Pebble - A free funky formalicious icon set for React (& plain ol' SVG & PNG)

A free funky formalicious icon set for React (& plain ol' SVG & PNG) Pebble is an icon set that aims for a friendly character. There's no real

Nov 19, 2022

Promisified thunk with caching (pronounced "funky")

phunky phunky (promisified thunk, pronounced funky) is yet another thunk-inspired library, to delay a calculation until its result is needed, but also

Oct 14, 2022

qTip2 - Pretty powerful tooltips

qTip2 is no longer maintained. Consider moving to a newer library if you need support or new features! qTip2 - Pretty powerful tooltips Introducing… q

Dec 20, 2022

A svelte action for creating tippy.js tooltips with full typescript support

A svelte action for creating tippy.js tooltips with full typescript support

Tippy.js for svelte A svelte action for creating tippy.js tooltips. Getting started # Pnpm pnpm add svelte-tippy tippy.js # Yarn yarn add svelte-tipp

Jul 19, 2022

CSS Tooltips built on Tether. #hubspot-open-source

Tooltip Tooltip.js is a Javascript and CSS library for creating styleable tooltips. Install Dependencies Tether Drop Installing via npm and bower will

Jan 2, 2023

Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4.

Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4.

Bootstrap Tooltip Custom Class Extends Bootstrap Tooltips and Popovers by adding custom classes. Available for Bootstrap 3 and Bootstrap 4. Define you

Feb 10, 2022

A lightweight JavaScript library for implementing tooltips.

Tooltipper A lightweight (1kB) JavaScript library for implementing tooltips. Installation Install via NPM: npm i -S tooltipper Install via CDN: scrip

Nov 2, 2022

JQuery-TableToExcel - Light weight jQuery plugin for export HTML table to excel file

tableToExcel Light weight jQuery plugin for export table to excel file Demos Website and demo here: http://tanvirpro.com/all_project/jQueryTableToExce

May 8, 2022

Jquery-cropper - A jQuery plugin wrapper for Cropper.js.

jquery-cropper A jQuery plugin wrapper for Cropper.js. Demo Main dist/ ├── jquery-cropper.js (UMD) ├── jquery-cropper.min.js (UMD, compresse

Jan 7, 2023

JQuery charCounter - jQuery Character Counter Plugin

JQuery charCounter - jQuery Character Counter Plugin

jQuery Character Counter A jQuery based character counter for input and textarea HTML tags. What is this? This simple plugin allows you to add a c

Aug 10, 2022

Jquery.iocurve - jQuery plugin like Tone Curve on Photoshop or GIMP

jquery.iocurve jQuery plugin like Tone Curve on Photoshop or GIMP. See Official page for more information. Quick start Create HTML and open in your br

Jul 28, 2022
Owner
Nourdine
Nourdine
Jquery.iocurve - jQuery plugin like Tone Curve on Photoshop or GIMP

jquery.iocurve jQuery plugin like Tone Curve on Photoshop or GIMP. See Official page for more information. Quick start Create HTML and open in your br

null 5 Jul 28, 2022
Jquery.Circle.js - Circle is a Javascript global-menu library for jQuery.

Circle About Circle is a Javascript global-menu library for jQuery. Read more at the website: http://uc.gpgkd906.com/ Installation Just include the Ja

陈瀚 3 Jul 19, 2021
jQuery Validation Plugin library sources

jQuery Validation Plugin - Form validation made easy The jQuery Validation Plugin provides drop-in validation for your existing forms, while making al

null 10.3k Jan 3, 2023
The best @jquery plugin to validate form fields. Designed to use with Bootstrap + Zurb Foundation + Pure + SemanticUI + UIKit + Your own frameworks.

FormValidation - Download http://formvalidation.io - The best jQuery plugin to validate form fields, designed to use with: Bootstrap Foundation Pure S

FormValidation 2.8k Mar 29, 2021
[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.

jQuery Form Validator [DISCONTINUED] Validation framework that let's you configure, rather than code, your validation logic. I started writing this pl

Victor Jonsson 976 Dec 30, 2022
jQuery Validation Plugin library sources

jQuery Validation Plugin - Form validation made easy The jQuery Validation Plugin provides drop-in validation for your existing forms, while making al

null 10.3k Jan 3, 2023
jQuery form validation plugin

jQuery.validationEngine v3.1.0 Looking for official contributors This project has now been going on for more than 7 years, right now I only maintain t

Cedric Dugas 2.6k Dec 23, 2022
MSelectDialogBox - jQuery plugin for interactive dropdown lists.

#MSelectDBox - jQuery plugin for interactive dropdown lists. Features Multiselect Events Autocomplete Custom function of autocomplete filter. Example:

null 11 Sep 27, 2022