├── .gitignore
├── LICENSE.txt
├── package.json
├── css
├── animations.css
├── animations.min.css
├── css-animations.min.css
└── css-animations.css
├── src
└── css-animations.css
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | # List of files for git to ignore
2 |
3 | .DS_Store
4 | .AppleDouble
5 | .LSOverride
6 |
7 | # Icon must end with two \r
8 | Icon
9 |
10 |
11 | # Thumbnails
12 | ._*
13 |
14 | # Files that might appear on external disk
15 | .Spotlight-V100
16 | .Trashes
17 |
18 | # Directories potentially created on remote AFP share
19 | .AppleDB
20 | .AppleDesktop
21 | Network Trash Folder
22 | Temporary Items
23 | .apdisk
24 |
25 | # Vim
26 | Session.vim
27 |
28 | # Node
29 | node_modules/*
30 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | ISC License (ISC)
2 | Copyright (c) 2018, Adam Morse
3 |
4 | Permission to use, copy, modify, and/or distribute this software for any
5 | purpose with or without fee is hereby granted, provided that the above
6 | copyright notice and this permission notice appear in all copies.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
10 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14 | PERFORMANCE OF THIS SOFTWARE.
15 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "css-animations",
3 | "style": "animations.css",
4 | "version": "1.0.7",
5 | "homepage": "http://github.com/mrmrs/css-animations",
6 | "description": "Css module of single purpose classes for animations",
7 | "keywords": [
8 | "css",
9 | "oocss",
10 | "animations"
11 | ],
12 | "css-animations": {
13 | "type": "git",
14 | "url": "http://github.com/mrmrs/css-animations.git"
15 | },
16 | "bugs": {
17 | "url": "https://github.com/mrmrs/css-animations/issues",
18 | "email": "hi@mrmrs.cc"
19 | },
20 | "author": {
21 | "name": "Adam Morse",
22 | "email": "hi@mrmrs.cc",
23 | "url": "http://mrmrs.cc"
24 | },
25 | "contributors": [
26 | {
27 | "name": "Adam Morse",
28 | "email": "hi@mrmrs.cc"
29 | }
30 | ],
31 | "license": "MIT",
32 | "devDependencies": {
33 | "tachyons-cli": "^1.0.8"
34 | },
35 | "scripts": {
36 | "start": "tachyons src/css-animations.css > css/css-animations.css && tachyons src/css-animations.css --minify > css/css-animations.min.css && tachyons src/css-animations.css --generate-docs --package=../../package.json > readme.md"
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/css/animations.css:
--------------------------------------------------------------------------------
1 | /*
2 | ANIMATIONS
3 | */
4 |
5 | .a-dir-norm { animation-direction: normal; }
6 | .a-dir-rev { animation-direction: reverse; }
7 | .a-dir-alt { animation-direction: alternate; }
8 | .a-dir-alt-rev { animation-direction: alternate-reverse; }
9 |
10 | @media screen and (min-width: 48em) {
11 | .a-dir-norm-ns { animation-direction: normal; }
12 | .a-dir-rev-ns { animation-direction: reverse; }
13 | .a-dir-alt-ns { animation-direction: alternate; }
14 | .a-dir-alt-rev-ns { animation-direction: alternate-reverse; }
15 | }
16 |
17 | @media screen and (min-width:48em) and (max-width: 64em) {
18 | .a-dir-norm-m { animation-direction: normal; }
19 | .a-dir-rev-m { animation-direction: reverse; }
20 | .a-dir-alt-m { animation-direction: alternate; }
21 | .a-dir-alt-rev-m { animation-direction: alternate-reverse; }
22 | }
23 |
24 | @media screen and (min-width: 64em) {
25 | .a-dir-norm-l { animation-direction: normal; }
26 | .a-dir-rev-l { animation-direction: reverse; }
27 | .a-dir-alt-l { animation-direction: alternate; }
28 | .a-dir-alt-rev-l { animation-direction: alternate-reverse; }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/css/animations.min.css:
--------------------------------------------------------------------------------
1 | /*
2 | ANIMATIONS
3 | */
4 |
5 | .a-dir-norm { animation-direction: normal; }
6 | .a-dir-rev { animation-direction: reverse; }
7 | .a-dir-alt { animation-direction: alternate; }
8 | .a-dir-alt-rev { animation-direction: alternate-reverse; }
9 |
10 | @media screen and (min-width: 48em) {
11 | .a-dir-norm-ns { animation-direction: normal; }
12 | .a-dir-rev-ns { animation-direction: reverse; }
13 | .a-dir-alt-ns { animation-direction: alternate; }
14 | .a-dir-alt-rev-ns { animation-direction: alternate-reverse; }
15 | }
16 |
17 | @media screen and (min-width:48em) and (max-width: 64em) {
18 | .a-dir-norm-m { animation-direction: normal; }
19 | .a-dir-rev-m { animation-direction: reverse; }
20 | .a-dir-alt-m { animation-direction: alternate; }
21 | .a-dir-alt-rev-m { animation-direction: alternate-reverse; }
22 | }
23 |
24 | @media screen and (min-width: 64em) {
25 | .a-dir-norm-l { animation-direction: normal; }
26 | .a-dir-rev-l { animation-direction: reverse; }
27 | .a-dir-alt-l { animation-direction: alternate; }
28 | .a-dir-alt-rev-l { animation-direction: alternate-reverse; }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/src/css-animations.css:
--------------------------------------------------------------------------------
1 | /*
2 | ANIMATIONS
3 | */
4 |
5 | .a-dir-norm { animation-direction: normal; }
6 | .a-dir-rev { animation-direction: reverse; }
7 | .a-dir-alt { animation-direction: alternate; }
8 | .a-dir-alt-rev { animation-direction: alternate-reverse; }
9 |
10 | @media screen and (min-width: 48em) {
11 | .a-dir-norm-ns { animation-direction: normal; }
12 | .a-dir-rev-ns { animation-direction: reverse; }
13 | .a-dir-alt-ns { animation-direction: alternate; }
14 | .a-dir-alt-rev-ns { animation-direction: alternate-reverse; }
15 | }
16 |
17 | @media screen and (min-width:48em) and (max-width: 64em) {
18 | .a-dir-norm-m { animation-direction: normal; }
19 | .a-dir-rev-m { animation-direction: reverse; }
20 | .a-dir-alt-m { animation-direction: alternate; }
21 | .a-dir-alt-rev-m { animation-direction: alternate-reverse; }
22 | }
23 |
24 | @media screen and (min-width: 64em) {
25 | .a-dir-norm-l { animation-direction: normal; }
26 | .a-dir-rev-l { animation-direction: reverse; }
27 | .a-dir-alt-l { animation-direction: alternate; }
28 | .a-dir-alt-rev-l { animation-direction: alternate-reverse; }
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/css/css-animations.min.css:
--------------------------------------------------------------------------------
1 | .a-dir-norm{-webkit-animation-direction:normal;animation-direction:normal}.a-dir-rev{-webkit-animation-direction:reverse;animation-direction:reverse}.a-dir-alt{-webkit-animation-direction:alternate;animation-direction:alternate}.a-dir-alt-rev{-webkit-animation-direction:alternate-reverse;animation-direction:alternate-reverse}@media screen and (min-width:48em){.a-dir-norm-ns{-webkit-animation-direction:normal;animation-direction:normal}.a-dir-rev-ns{-webkit-animation-direction:reverse;animation-direction:reverse}.a-dir-alt-ns{-webkit-animation-direction:alternate;animation-direction:alternate}.a-dir-alt-rev-ns{-webkit-animation-direction:alternate-reverse;animation-direction:alternate-reverse}}@media screen and (min-width:48em) and (max-width:64em){.a-dir-norm-m{-webkit-animation-direction:normal;animation-direction:normal}.a-dir-rev-m{-webkit-animation-direction:reverse;animation-direction:reverse}.a-dir-alt-m{-webkit-animation-direction:alternate;animation-direction:alternate}.a-dir-alt-rev-m{-webkit-animation-direction:alternate-reverse;animation-direction:alternate-reverse}}@media screen and (min-width:64em){.a-dir-norm-l{-webkit-animation-direction:normal;animation-direction:normal}.a-dir-rev-l{-webkit-animation-direction:reverse;animation-direction:reverse}.a-dir-alt-l{-webkit-animation-direction:alternate;animation-direction:alternate}.a-dir-alt-rev-l{-webkit-animation-direction:alternate-reverse;animation-direction:alternate-reverse}}
2 |
3 |
--------------------------------------------------------------------------------
/css/css-animations.css:
--------------------------------------------------------------------------------
1 | /*
2 | ANIMATIONS
3 | */
4 | .a-dir-norm { -webkit-animation-direction: normal; animation-direction: normal; }
5 | .a-dir-rev { -webkit-animation-direction: reverse; animation-direction: reverse; }
6 | .a-dir-alt { -webkit-animation-direction: alternate; animation-direction: alternate; }
7 | .a-dir-alt-rev { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
8 | @media screen and (min-width: 48em) {
9 | .a-dir-norm-ns { -webkit-animation-direction: normal; animation-direction: normal; }
10 | .a-dir-rev-ns { -webkit-animation-direction: reverse; animation-direction: reverse; }
11 | .a-dir-alt-ns { -webkit-animation-direction: alternate; animation-direction: alternate; }
12 | .a-dir-alt-rev-ns { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
13 | }
14 | @media screen and (min-width:48em) and (max-width: 64em) {
15 | .a-dir-norm-m { -webkit-animation-direction: normal; animation-direction: normal; }
16 | .a-dir-rev-m { -webkit-animation-direction: reverse; animation-direction: reverse; }
17 | .a-dir-alt-m { -webkit-animation-direction: alternate; animation-direction: alternate; }
18 | .a-dir-alt-rev-m { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
19 | }
20 | @media screen and (min-width: 64em) {
21 | .a-dir-norm-l { -webkit-animation-direction: normal; animation-direction: normal; }
22 | .a-dir-rev-l { -webkit-animation-direction: reverse; animation-direction: reverse; }
23 | .a-dir-alt-l { -webkit-animation-direction: alternate; animation-direction: alternate; }
24 | .a-dir-alt-rev-l { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # css-animations 1.0.6
2 |
3 | Css module of single purpose classes for animations
4 |
5 | #### Stats
6 |
7 | 244 | 16 | 32
8 | ---|---|---
9 | bytes | selectors | declarations
10 |
11 | ## Installation
12 |
13 | #### With [npm](https://npmjs.com)
14 |
15 | ```
16 | npm install --save-dev css-animations
17 | ```
18 |
19 | Learn more about using css installed with npm:
20 | * https://webpack.github.io/docs/stylesheets.html
21 | * https://github.com/defunctzombie/npm-css
22 |
23 | #### With Git
24 |
25 | http:
26 | ```
27 | git clone https://github.com/tachyons-css/css-animations
28 | ```
29 |
30 | ssh:
31 | ```
32 | git clone git@github.com:tachyons-css/css-animations.git
33 | ```
34 |
35 | ## Usage
36 |
37 | #### Using with [Postcss](https://github.com/postcss/postcss)
38 |
39 | Import the css module
40 |
41 | ```css
42 | @import "css-animations";
43 | ```
44 |
45 | Then process the css using the [`tachyons-cli`](https://github.com/tachyons-css/tachyons-cli)
46 |
47 | ```sh
48 | $ npm i -g tachyons-cli
49 | $ tachyons path/to/css-file.css > dist/t.css
50 | ```
51 |
52 | #### Using the css
53 |
54 | ##### CDN
55 | The easiest and most simple way to use the css is to use the cdn hosted version. Include it in the head of your html with:
56 |
57 | ```
58 |
59 | ```
60 |
61 | ##### Locally
62 | The built css is located in the `css` directory. It contains an unminified and minified version.
63 | You can either cut and paste that css or link to it directly in your html.
64 |
65 | ```html
66 |
67 | ```
68 |
69 | #### Development
70 |
71 | The source css files can be found in the `src` directory.
72 | Running `$ npm start` will process the source css and place the built css in the `css` directory.
73 |
74 | ## The css
75 |
76 | ```css
77 | /*
78 | ANIMATIONS
79 | */
80 | .a-dir-norm { -webkit-animation-direction: normal; animation-direction: normal; }
81 | .a-dir-rev { -webkit-animation-direction: reverse; animation-direction: reverse; }
82 | .a-dir-alt { -webkit-animation-direction: alternate; animation-direction: alternate; }
83 | .a-dir-alt-rev { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
84 | @media screen and (min-width: 48em) {
85 | .a-dir-norm-ns { -webkit-animation-direction: normal; animation-direction: normal; }
86 | .a-dir-rev-ns { -webkit-animation-direction: reverse; animation-direction: reverse; }
87 | .a-dir-alt-ns { -webkit-animation-direction: alternate; animation-direction: alternate; }
88 | .a-dir-alt-rev-ns { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
89 | }
90 | @media screen and (min-width:48em) and (max-width: 64em) {
91 | .a-dir-norm-m { -webkit-animation-direction: normal; animation-direction: normal; }
92 | .a-dir-rev-m { -webkit-animation-direction: reverse; animation-direction: reverse; }
93 | .a-dir-alt-m { -webkit-animation-direction: alternate; animation-direction: alternate; }
94 | .a-dir-alt-rev-m { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
95 | }
96 | @media screen and (min-width: 64em) {
97 | .a-dir-norm-l { -webkit-animation-direction: normal; animation-direction: normal; }
98 | .a-dir-rev-l { -webkit-animation-direction: reverse; animation-direction: reverse; }
99 | .a-dir-alt-l { -webkit-animation-direction: alternate; animation-direction: alternate; }
100 | .a-dir-alt-rev-l { -webkit-animation-direction: alternate-reverse; animation-direction: alternate-reverse; }
101 | }
102 | ```
103 |
104 | ## Contributing
105 |
106 | 1. Fork it
107 | 2. Create your feature branch (`git checkout -b my-new-feature`)
108 | 3. Commit your changes (`git commit -am 'Add some feature'`)
109 | 4. Push to the branch (`git push origin my-new-feature`)
110 | 5. Create new Pull Request
111 |
112 | ## Authors
113 |
114 | * [mrmrs](http://mrmrs.io)
115 | * [johno](http://johnotander.com)
116 |
117 | ## License
118 |
119 | ISC
120 |
121 |
--------------------------------------------------------------------------------