Webanizr Logo
Open / sluit menu
Module animation

This module can start and stop css animations.

syntax

webanizr.send('animation', data, parameters, callback);

data

The data is passed unaltered to the callback function. The data itself is not used.

parameters

Module animation accepts the following parameters:

query__selector (required)

The selector that points to the element(s) on which the animation action should be performed.

type__action (required)

The type of action that should be performed. The options are:

  • start: start any css animation available on the selected element(s)
  • pause: pause any css animation available on the selected element(s)

callback

The callback is called directly after the manipulations and receives the data unaltered.

demo

https://cdn.cpmodules.webanizr.com/demo/css-animation/index.html