Natural Polyglot Machine

    jquery-vanish

    1.1.0 • Public • Published

    jQuery Vanish

    Build Status Code Climate

    A jQuery plugin to easily create a vanish effect on a string.

    Demo

    http://www.matheusazzi.com/jquery-vanish

    Installation

    Install via Bower

    bower install jquery-vanish

    Usage

    <h1>Hello Foo Bar</h1>
    <p>Other Foo Bar</p>
    $('h1').vanish();

    Events

    The plugin will trigger a vanished event on element:

    $('p').vanish({
      duration: 2500,
      animation: 200,
    }).on('vanished', function() {
      alert('Vanish ends');
    })

    Options

    Option Type Default Description
    duration Number 3000 The duration in milliseconds to vanish all string
    animation Number 300 The time of an item vanish animation
    className String 'is-vanishing' A class to add when the character starts to vanish

    Browser Support

    </tr>
    <tr>
      <td align="center">9+</td>
      <td align="center">✓</td>
      <td align="center">✓</td>
      <td align="center">✓</td>
      <td align="center">✓</td>
    </tr>
    

    License

    The MIT License (MIT)

    Copyright © 2015 Matheus Azzi matheuslazzi@gmail.com

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Install

    npm i jquery-vanish

    DownloadsWeekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • matheusazzi