Skip to content

Commit 7997eab

Browse files
committed
init commit
0 parents  commit 7997eab

26 files changed

Lines changed: 3444 additions & 0 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.*.swp
2+
node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017, loading.io
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# state.css
2+
3+
Stateful CSS animation.
4+
5+
6+
## LICENSE
7+
8+
MIT License

build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
mkdir -p dist
3+
echo "build src/state.styl -> dist/state.css ..."
4+
./node_modules/.bin/stylus -p src/state.styl > dist/state.css
5+
echo "minifying state.css ..."
6+
./node_modules/.bin/uglifycss dist/state.css > dist/state.min.css
7+
echo "deploy into local web ..."
8+
mkdir -p web/static/assets/lib/state.css/
9+
cp -R dist/* web/static/assets/lib/state.css/
10+
echo "done."
11+

dist/state.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.ld.ld-flip-ltr {
2+
animation: ld-flip-ltr 1s linear 1;
3+
}
4+
@-moz-keyframes ld-flip-ltr {
5+
0%, 100% {
6+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
7+
}
8+
0% {
9+
transform: scale(1, 1);
10+
}
11+
100% {
12+
transform: scale(-1, 1);
13+
}
14+
}
15+
@-webkit-keyframes ld-flip-ltr {
16+
0%, 100% {
17+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
18+
}
19+
0% {
20+
transform: scale(1, 1);
21+
}
22+
100% {
23+
transform: scale(-1, 1);
24+
}
25+
}
26+
@-o-keyframes ld-flip-ltr {
27+
0%, 100% {
28+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
29+
}
30+
0% {
31+
transform: scale(1, 1);
32+
}
33+
100% {
34+
transform: scale(-1, 1);
35+
}
36+
}
37+
@keyframes ld-flip-ltr {
38+
0%, 100% {
39+
animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
40+
}
41+
0% {
42+
transform: scale(1, 1);
43+
}
44+
100% {
45+
transform: scale(-1, 1);
46+
}
47+
}

dist/state.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)