Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created December 4, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertcedwards/98ead0018531fc24879aa433f778f26f to your computer and use it in GitHub Desktop.
Save robertcedwards/98ead0018531fc24879aa433f778f26f to your computer and use it in GitHub Desktop.
Possible data attributes from impress.js
* `data-x`, `data-y`, `data-z` - they define the position of **the center** of step element on
the canvas in pixels; their default value is 0;
* `data-rotate-x`, `data-rotate-y`, 'data-rotate-z`, `data-rotate` - they define the rotation of
the element around given axis in degrees; their default value is 0; `data-rotate` and `data-rotate-z`
are exactly the same;
* `data-scale` - defines the scale of step element; default value is 1
These values are used by impress.js in CSS transformation functions, so for more information consult
CSS transfrom docs: https://developer.mozilla.org/en/CSS/transform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment