A jQuery plugin with smooth effect.
CSS JavaScript
Latest commit 49201fa Sep 29, 2013 @Rodrigo-Ludgero update files style.css and README.md, delete script into scripts.js a…
…dd author into rlsmooth.min.js

README.md

RLSmooth

A jQuery flowing effect plugin.

About

rlSmooth is a small flowing plugin.

Usage

HTML

    <div class=".my-class"></div>

JS

How to implement:

    <script>
        $(function() {

            $(".my-class or #my-id").rlSmooth();

            // or with options
            $(".my-class or #my-id").rlSmooth('slide',{
                y: 0,       // ms default settings for vertical window position
                on: 500,    // ms default settings effect speed
                off: 500    // ms default settings effect speed
            });

            // Parameter options effects

            // Options                  First effect            Second effect

            // 'slide'                  slideDown()             slideUp()
            // 'slideout'               slideDown()             fadeOut()
            // 'slidehide'              slideDown()             hide()

            // 'fade'                   fadeIn()                fadeOut()
            // 'fadeup'                 fadeIn()                slideUp()
            // 'fadehide'               fadeIn()                hide()

            // 'showhide'               show()                  hide()
            // 'showup'                 show()                  slideUp()
            // 'showout'                show()                  fadeOut()

        });

    </script>

Demo:

The default css position is top, but you can change to bottom or apply when you need with css.

http://rodrigoludgero.com/rlsmooth/rlsmooth.html

License

Copyright (c) 2013 Rodrigo Ludgero Licensed under the MIT license



The MIT License

Copyright (c) 2013 Rodrigo Ludgero, http://rodrigoludgero.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 NON INFRINGEMENT. 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.