├── .htmlnanorc
├── dist
├── index.css
└── index.js
├── .npmignore
├── .babelrc
├── src
├── docs
│ ├── scripts
│ │ ├── about.vue
│ │ ├── site.js
│ │ ├── application.vue
│ │ └── home.vue
│ ├── images
│ │ ├── vue_logo.png
│ │ ├── down.svg
│ │ └── vue_logo.svg
│ ├── sandbox
│ │ ├── _includes
│ │ │ ├── top-menu.html
│ │ │ ├── side-menu.html
│ │ │ ├── head.html
│ │ │ ├── navbar.html
│ │ │ ├── script.html
│ │ │ └── tabs-menu.html
│ │ ├── .npmignore
│ │ ├── .gitignore
│ │ ├── src
│ │ │ ├── base
│ │ │ │ ├── _breakpoint-values.scss
│ │ │ │ ├── a.scss
│ │ │ │ ├── headings.scss
│ │ │ │ ├── _global-variables.scss
│ │ │ │ ├── ul-ol.scss
│ │ │ │ ├── table.scss
│ │ │ │ ├── _colors.scss
│ │ │ │ ├── _mixins.scss
│ │ │ │ └── reset.scss
│ │ │ ├── utilities
│ │ │ │ ├── position.scss
│ │ │ │ ├── float.scss
│ │ │ │ ├── img.scss
│ │ │ │ ├── overflow.scss
│ │ │ │ ├── z-index.scss
│ │ │ │ ├── width.scss
│ │ │ │ ├── height.scss
│ │ │ │ ├── border.scss
│ │ │ │ ├── text.scss
│ │ │ │ ├── display.scss
│ │ │ │ ├── font-size.scss
│ │ │ │ ├── zeroing.scss
│ │ │ │ └── spacing.scss
│ │ │ ├── components
│ │ │ │ ├── modal.scss
│ │ │ │ ├── list-items.scss
│ │ │ │ ├── code.scss
│ │ │ │ ├── progress.scss
│ │ │ │ ├── steps.scss
│ │ │ │ ├── square.scss
│ │ │ │ ├── navbar.scss
│ │ │ │ ├── popover.scss
│ │ │ │ ├── card.scss
│ │ │ │ ├── close.scss
│ │ │ │ ├── pagination.scss
│ │ │ │ ├── loading.scss
│ │ │ │ ├── dropdown.scss
│ │ │ │ └── tabs.scss
│ │ │ ├── themes
│ │ │ │ └── themes.scss
│ │ │ ├── buttons
│ │ │ │ ├── button-outlined.scss
│ │ │ │ ├── buttons.scss
│ │ │ │ └── button.scss
│ │ │ ├── layout
│ │ │ │ ├── position-presets.scss
│ │ │ │ ├── flexbox.scss
│ │ │ │ └── grid.scss
│ │ │ ├── forms
│ │ │ │ ├── icons.scss
│ │ │ │ ├── field.scss
│ │ │ │ ├── addons.scss
│ │ │ │ └── controls.scss
│ │ │ └── sandbox.scss
│ │ ├── LICENSE.md
│ │ ├── README.md
│ │ ├── package.json
│ │ └── dist
│ │ │ └── sandbox-min.css.map
│ └── index.html
├── browserBuild.js
├── animation.vue
└── animated.vue
├── docs
├── vue_logo.2508b6c5.png
├── index.html
└── down.5e2b361d.svg
├── .eslintignore
├── index.js
├── server.js
├── readme.md
├── .gitignore
├── package.json
└── .eslintrc.json
/.htmlnanorc:
--------------------------------------------------------------------------------
1 | {
2 | minifySvg: false
3 | }
--------------------------------------------------------------------------------
/dist/index.css:
--------------------------------------------------------------------------------
1 | .animated-d[data-v-920133]{display:inherit}
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | docs
2 | public
3 | coverage
4 | .cache
5 | .idea
6 | .circleci
7 | server.js
8 | src/docs
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "sourceMaps": "inline",
3 | "plugins": [
4 | ["transform-object-rest-spread"]
5 | ]
6 | }
--------------------------------------------------------------------------------
/src/docs/scripts/about.vue:
--------------------------------------------------------------------------------
1 |
2 |
5 |
--------------------------------------------------------------------------------
/docs/vue_logo.2508b6c5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BrianRosamilia/vue-declarative-animation/HEAD/docs/vue_logo.2508b6c5.png
--------------------------------------------------------------------------------
/src/docs/images/vue_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/BrianRosamilia/vue-declarative-animation/HEAD/src/docs/images/vue_logo.png
--------------------------------------------------------------------------------
/src/docs/sandbox/_includes/top-menu.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | public2/g.js
2 | public2/materialize-css
3 | public2/materialize-css/*
4 | public2/scripts/materialize.js
5 | public2/sandbox
--------------------------------------------------------------------------------
/src/docs/sandbox/.npmignore:
--------------------------------------------------------------------------------
1 | _includes/
2 | _site/
3 | css/
4 | docs/
5 | index.html
6 | node_modules/
7 | style-guide.html
8 | test.html
--------------------------------------------------------------------------------
/index.js:
--------------------------------------------------------------------------------
1 | import animated from './src/animated.vue';
2 | import animation from './src/animation.vue';
3 |
4 | export { animated, animation };
--------------------------------------------------------------------------------
/src/docs/sandbox/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | test.html
3 | css/dev-helper.css
4 | .sass-cache/
5 | node_modules/
6 | _site/
7 | style-guide.html
8 | css/
--------------------------------------------------------------------------------
/src/browserBuild.js:
--------------------------------------------------------------------------------
1 | import animated from './animated.vue';
2 | import animation from './animation.vue';
3 |
4 | window.animated = animated;
5 | window.animation = animation;
--------------------------------------------------------------------------------
/src/docs/sandbox/src/base/_breakpoint-values.scss:
--------------------------------------------------------------------------------
1 | $sm-and-below: 48rem; // 768px
2 |
3 | $md-lower: 48.0625rem; // 769px
4 | $md-upper: 64rem; // 1024px
5 |
6 | $lg-and-above: 64.0625rem; // 1025px
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/position.scss:
--------------------------------------------------------------------------------
1 | .relative { position: relative !important; }
2 | .fixed { position: fixed !important; }
3 | .absolute { position: absolute !important; }
4 | .sticky { position: sticky !important; }
5 | .static { position: static !important; }
--------------------------------------------------------------------------------
/src/docs/sandbox/_includes/side-menu.html:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/float.scss:
--------------------------------------------------------------------------------
1 | .to-left { float: left !important; }
2 | .to-right { float: right !important; }
3 | .no-float { float: none !important; }
4 | .clear-left { clear: left !important; }
5 | .clear-right { clear: right !important; }
6 | .clear-both { clear: both !important; }
7 |
--------------------------------------------------------------------------------
/server.js:
--------------------------------------------------------------------------------
1 | //Test Server included for hot reloading
2 | const express = require('express');
3 | const app = express();
4 |
5 | app.use(express.static('docs'));
6 |
7 | module.exports = app.listen(3000, function(e){
8 | if(e !== undefined){
9 | console.error(e);
10 | }
11 | console.log('App listening on port 3000!');
12 | });
--------------------------------------------------------------------------------
/src/docs/sandbox/src/base/a.scss:
--------------------------------------------------------------------------------
1 | @import "./colors.scss";
2 |
3 | .a {
4 | cursor: pointer;
5 | text-decoration: none;
6 | color: $link-unvisited;
7 |
8 | &:hover, &:focus {
9 | outline: none;
10 | text-decoration: underline;
11 | }
12 |
13 | &:visited {
14 | color: $link-visited;
15 | }
16 | }
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/img.scss:
--------------------------------------------------------------------------------
1 | @import "../base/colors.scss";
2 |
3 | .responsive {
4 | max-width: 100% !important;
5 | height: auto !important;
6 | }
7 |
8 | .fill-width {
9 | width: 100% !important;
10 | height: auto !important;
11 | }
12 |
13 | .fit-contain { object-fit: contain !important; }
14 | .fit-cover { object-fit: cover !important; }
15 | .fit-none { object-fit: none !important; }
--------------------------------------------------------------------------------
/src/animation.vue:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/overflow.scss:
--------------------------------------------------------------------------------
1 | .o-scroll { overflow: scroll !important; }
2 | .o-auto { overflow: auto !important; }
3 | .o-hidden { overflow: hidden !important; }
4 |
5 | .ox-scroll { overflow-x: scroll !important; }
6 | .ox-auto { overflow-x: auto !important; }
7 | .ox-hidden { overflow-x: hidden !important; }
8 |
9 | .oy-scroll { overflow-y: scroll !important; }
10 | .oy-auto { overflow-y: auto !important; }
11 | .oy-hidden { overflow-y: hidden !important; }
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # vue-declarative-animation
2 |
3 | A declarative Vue template wrapper around [Velocity.js](http://velocityjs.org/)
4 |
5 | [Examples here](https://brianrosamilia.github.io/vue-declarative-animation)
6 |
7 | ## Installation
8 |
9 | `npm install vue-declarative-animation`
10 |
11 | `import { animated, animation } from 'vue-declarative-animation';`
12 |
13 | In your Vue component:
14 |
15 | ```
16 | components: {
17 | animated,
18 | animation
19 | }
20 | ```
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/z-index.scss:
--------------------------------------------------------------------------------
1 | .z--10 { z-index: -10 !important; }
2 | .z-0 { z-index: 0 !important; }
3 | .z-10 { z-index: 10 !important; }
4 | .z-20 { z-index: 20 !important; }
5 | .z-30 { z-index: 30 !important; }
6 | .z-40 { z-index: 40 !important; }
7 | .z-50 { z-index: 50 !important; }
8 | .z-60 { z-index: 60 !important; }
9 | .z-70 { z-index: 70 !important; }
10 | .z-80 { z-index: 80 !important; }
11 | .z-90 { z-index: 90 !important; }
12 | .z-100 { z-index: 100 !important; }
--------------------------------------------------------------------------------
/src/docs/sandbox/src/base/headings.scss:
--------------------------------------------------------------------------------
1 | @import "./colors.scss";
2 |
3 | // scale: 1.3333
4 |
5 | h1 {
6 | font-size: 3.8rem;
7 | }
8 |
9 | h2 {
10 | font-size: 2.8rem;
11 | }
12 |
13 | h3 {
14 | font-size: 2.1rem;
15 | }
16 |
17 | h4, p {
18 | font-size: 1.6rem;
19 | }
20 |
21 | h5 {
22 | font-size: 1.2rem;
23 | }
24 |
25 | h6, small {
26 | font-size: 0.9rem;
27 | }
28 |
29 | h1, h2, h3, h4, p, h5, h6, small {
30 | line-height: 1.5;
31 | }
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/src/docs/scripts/site.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue';
2 | import VueRouter from 'vue-router';
3 | Vue.use(VueRouter);
4 | import application from './application.vue';
5 | import home from './home.vue';
6 |
7 | Vue.config.devtools = true;
8 |
9 | const routes = [
10 | { path: '/', component: home }
11 | ];
12 |
13 | const router = new VueRouter({
14 | routes
15 | });
16 |
17 | window.onload = () => {
18 | new Vue({
19 | name: 'app',
20 | el: '#app',
21 | router,
22 | render(h){
23 | return h(application);
24 | }
25 | });
26 | };
--------------------------------------------------------------------------------
/src/docs/sandbox/src/base/_global-variables.scss:
--------------------------------------------------------------------------------
1 | @import "./colors.scss";
2 |
3 | $FONT_STACK: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
4 | $FONT_COLOR: $alpha-black;
5 | $BODY_BACKGROUND_COLOR: rgb(250, 250, 250);
6 |
7 | $BORDER_COLOR: $medium-white;
8 | $BORDER_ACTIVE_COLOR: $dark-white;
9 |
10 | $GRID_SYSTEM: 12;
11 | $UNIT_SPACING: 1.2rem;
12 | $SPACING_LEVELS: 4;
13 |
14 | $RADIUS_ROUND: 200em;
15 | $BUTTON_BORDER_RADIUS: 0.1875em;
16 |
17 | $CONTROL_HEIGHT: 2.25em;
18 | $CONTROL_SHADOW_SPREAD: 0.1875em;
19 |
20 | $DISABLED_OPACITY: 0.5;
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/width.scss:
--------------------------------------------------------------------------------
1 | @import "../base/breakpoint-values.scss";
2 |
3 | .w-1-4 { width: 25% !important; }
4 | .w-1-3 { width: percentage(1 / 3) !important; }
5 | .w-1-2 { width: 50% !important; }
6 | .w-2-3 { width: percentage(2 / 3) !important; }
7 | .w-3-4 { width: 75% !important; }
8 | .w-1 { width: 100% !important; }
9 |
10 | .w-1-4-vw { width: 25vw !important; }
11 | .w-1-3-vw { width: (1 / 3 * 100) * 1vw !important; }
12 | .w-1-2-vw { width: 50vw !important; }
13 | .w-2-3-vw { width: (2 / 3 * 100) * 1vw !important; }
14 | .w-3-4-vw { width: 75vw !important; }
15 | .w-1-vw { width: 100vw !important; }
--------------------------------------------------------------------------------
/src/docs/sandbox/src/utilities/height.scss:
--------------------------------------------------------------------------------
1 | @import "../base/breakpoint-values.scss";
2 |
3 | .h-1-4 { height: 25% !important; }
4 | .h-1-3 { height: percentage(1 / 3) !important; }
5 | .h-1-2 { height: 50% !important; }
6 | .h-2-3 { height: percentage(2 / 3) !important; }
7 | .h-3-4 { height: 75% !important; }
8 | .h-1 { height: 100% !important; }
9 |
10 | .h-1-4-vh { height: 25vh !important; }
11 | .h-1-3-vh { height: (1 / 3 * 100) * 1vh !important; }
12 | .h-1-2-vh { height: 50vh !important; }
13 | .h-2-3-vh { height: (2 / 3 * 100) * 1vh !important; }
14 | .h-3-4-vh { height: 75vh !important; }
15 | .h-1-vh { height: 100vh !important; }
--------------------------------------------------------------------------------
/src/docs/sandbox/src/components/modal.scss:
--------------------------------------------------------------------------------
1 | @import "../base/colors.scss";
2 |
3 | $overlay-background-color: $alpha-light-black;
4 | $modal-padding: 1.25em;
5 | $modal-border-radius: 0.25em;
6 | $modal-background-color: $white;
7 |
8 | // div
9 | .overlay {
10 | position: fixed;
11 | z-index: 55;
12 | top: 0;
13 | left: 0;
14 | height: 100.1%;
15 | width: 100%;
16 | overflow-y: auto;
17 | background-color: $overlay-background-color;
18 | }
19 |
20 | // div
21 | .modal {
22 | font-size: 1.6rem;
23 | padding: $modal-padding;
24 | border-radius: $modal-border-radius;
25 | background-color: $modal-background-color;
26 | }
--------------------------------------------------------------------------------
/src/docs/sandbox/_includes/head.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/docs/sandbox/src/components/list-items.scss:
--------------------------------------------------------------------------------
1 | @import "../base/global-variables.scss";
2 | @import "../base/colors.scss";
3 |
4 | $list-item-border-color: $BORDER_COLOR;
5 | $list-item-padding: 1em;
6 |
7 | // ul
8 | .list-items {
9 | font-size: 1.6rem;
10 |
11 | // li
12 | .list-item:first-child {
13 | padding-bottom: $list-item-padding;
14 | }
15 |
16 | .list-item:not(:first-child):not(:last-child) {
17 | padding: $list-item-padding 0rem;
18 | }
19 |
20 | .list-item:last-child {
21 | padding-top: $list-item-padding;
22 | }
23 |
24 | .list-item:not(:last-child) {
25 | border-bottom: 0.1rem solid $list-item-border-color;
26 | }
27 | }
--------------------------------------------------------------------------------
/src/docs/sandbox/src/components/code.scss:
--------------------------------------------------------------------------------
1 | @import "../base/colors.scss";
2 |
3 | $code-color: $alpha-black;
4 | $code-line-height: 1.25;
5 | $code-background-color: $medium-white;
6 | $code-border-radius: 0.25em;
7 | $code-padding: 1em;
8 | $snippet-padding: 0.25em;
9 |
10 | // pre, span
11 | .code, .snippet {
12 | font-family: monospace;
13 | color: $code-color;
14 | background-color: $code-background-color;
15 | border-radius: $code-border-radius;
16 | }
17 |
18 | // pre
19 | .code {
20 | font-size: 1.6rem;
21 | line-height: $code-line-height;
22 | overflow-x: auto;
23 | padding: $code-padding;
24 | }
25 |
26 | // span
27 | .snippet {
28 | display: inline-block;
29 | padding: $snippet-padding;
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/src/docs/sandbox/src/themes/themes.scss:
--------------------------------------------------------------------------------
1 | @import "../base/colors.scss";
2 | @import "../base/mixins.scss";
3 |
4 | .primary, .info, .danger, .dark {
5 | color: $alpha-white;
6 | }
7 |
8 | .caution, .light {
9 | color: $alpha-black;
10 | }
11 |
12 | .primary {
13 | @include border-background-color($medium-primary);
14 | }
15 |
16 | .info {
17 | @include border-background-color($medium-info);
18 | }
19 |
20 | .caution {
21 | @include border-background-color($medium-caution);
22 | }
23 |
24 | .danger {
25 | @include border-background-color($medium-danger);
26 | }
27 |
28 | .light {
29 | @include border-background-color($light-white);
30 | }
31 |
32 | .dark {
33 | @include border-background-color($medium-black);
34 | }
--------------------------------------------------------------------------------
/src/docs/scripts/application.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/docs/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Declarative Animations
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |