hwthorn / parallaxify

parallaxify is a jQuery plugin that adds parallax effects to elements and backgrounds based on gyroscope sensor or mouse input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'destroy' method to documentation

matlembo opened this issue · comments

Fantastic plugin.

Just thought you might want to add the 'destroy' option to the documentation as it's really handy for creating on hover parallax effects, for instance, but I had to look through the plugin code to find it!

$('#my-element').hover(
    function(){
        $(this).parallaxify(args);
    },
    function(){
        $(this).parallaxify('destroy');
    }
);

Thank you for pointing it out. Just added it to the documentation.