Coffeekraken.io 0.0.1

SMotionblurSvgFilter

Example

    const filter = new SMotionblurSvgFilter();
filter.applyTo(myCoolHTMLElement);
// now when your element will move, it will be blured accordingly

Author : Olivier Bossel olivier.bossel@gmail.com

Constructor

Name Type Description Status Default
amount { Number } The motion blur amount required

Methods

applyTo

Apply the filter to element

Name Type Description Status Default
elm { HTMLElement } The element on which to apply the filter required

unapplyFrom

Remove the filter from element

Name Type Description Status Default
elm { HTMLElement } The element to unapply the filter from required

destroy

Destroy the filter