simple-floating-text

1.0.0 • Public • Published

Floating Text

floatingText is a Jquery plugin that can float any characters that was type in input form

How To Use

  1. Using NPM / Yarn
npm install simple-floating-text

or

yarn add simple-floating-text
  1. Clone this repository
  2. Load the floating-text.js in your *.html
  3. Call function with Jquery and add your tags/class/id
$(document).ready(function () {
  $("class/id/tags").floatingText({
    option
  });
});

Note:

Don't forget to add Jquery from CDN or manually into your code/hmtl

Parameters

duration

Integer (number). 1 by default. A value to define speed of fading out the floating characters.

Upperlimit

Interger (number). 150 by default. A value to define maximum of how far the floating text is floating by adding margin bottom in CSS.

sizeInterval

Array Integer (number). [15, 80] by default. A value to define font-size of floating text and randomize by getRandomInt from this Array number.

Package Sidebar

Install

npm i simple-floating-text

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.95 kB

Total Files

7

Last publish

Collaborators

  • wisnucurtis