Skip to content

MouseShadowController.js

deployment script via Travis CI edited this page Feb 25, 2020 · 1 revision

mousemoveEventShadow([shadowFunction], [additionalFilter], [postFunction]) ⇒ void

Adds an mousemove eventListener for each DOM element that matches the criteria. Defines how the element should be shadowed in case of a mousemove and what should happen afterwards

Kind: global function

Param Type Default Description
[shadowFunction] function (o, m)=>'none' returns a css transformation string. params: array of mouse position (x, y).
[additionalFilter] string "'*'" css query that has to apply additionally to the one passed in the constructor
[postFunction] function (event, element)=>{} optional function that runs after the mouse shadow is successfully added internally.