steller-vue-transitions

0.0.0-alpha.2 • Public • Published

Steller Vue Transitions

Steller Vue Transitions is a StellerCSS module for integrating named Vue.js transitions into your Steller design system.

Installation

npm i steller-vue-transitions
yarn add steller-vue-transitions

Usage

// Assuming you are using webpack

@import 'steller-theme'; // Your config file
@import '~steller-vue-transitions/index';

$steller-modules: (
  $steller-vue-transitions,
);

@import '~steller-css/index'; // StellerCSS

Config

$steller-vue-transitions-slide-distance-xs: 1px;
$steller-vue-transitions-slide-distance-sm: 2px;
$steller-vue-transitions-slide-distance-md: 4px;
$steller-vue-transitions-slide-distance-lg: 6px;
$steller-vue-transitions-slide-distance-xl: 10px;

Speeds

This module uses the speed variables defined in StellerCSS.

$steller-speed-extra-slow: 500ms;
$steller-speed-slow: 400ms;
$steller-speed-normal: 300ms;
$steller-speed-fast: 200ms;
$steller-speed-extra-fast: 100ms;

Utility Classes

Slide In

<transition name="slide-in-from-{$direction}-{$distance}-{$speed}">
  //
</transition>
  • Directions: ('top', 'right', 'bottom', 'left')
  • Distances: ('xs', 'sm', 'md', 'lg', 'xl')
  • Speeds: ('extra-slow', 'slow', 'normal', 'fast', 'extra-fast')

Fade

<transition name="fade-{$speed}">
  //
</transition>
  • Speeds: ('extra-slow', 'slow', 'normal', 'fast', 'extra-fast')

Flip

<transition name="flip-list-{$speed}">
  //
</transition>
  • Speeds: ('extra-slow', 'slow', 'normal', 'fast', 'extra-fast')

Roadmap

  • Add more transition types
  • Tests

Steller Family

Readme

Keywords

none

Package Sidebar

Install

npm i steller-vue-transitions

Weekly Downloads

0

Version

0.0.0-alpha.2

License

MIT

Unpacked Size

245 kB

Total Files

19

Last publish

Collaborators

  • tjhillard