Install Motion UI with npm or Bower.
npm install motion-ui --save bower install motion-ui --save
To import the Sass files into a project, add the load path
[modules_folder]/motion-ui/src to your Sass configuration, then
@import the library:
Autoprefixer is required to use this library. The library uses unprefixed
animation properties, which are then prefixed by Autoprefixer.
The library includes two mixins which export all of the default CSS for the framework. This includes:
- Transitions for slide, fade, hinge, scale, and spin
- Animation classes for spinning, shaking, and wiggling
- Modifier classes for transition/animation speed, timing, and delay
@include motion-ui-transitions; @include motion-ui-animations;
The package files also include these pre-made classes as a standalone CSS file, in minified and unminified flavors.