Skip to content

Commit 0666583

Browse files
committed
use anikit to generate all animations
1 parent f10fa86 commit 0666583

269 files changed

Lines changed: 8410 additions & 1022 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# v2.0.0 Change Log
2+
3+
* animations rename: ( old names kept as alias )
4+
- ld-rubber -> ld-rubber-h
5+
- ld-wander -> ld-wander-h
6+
- ld-shake -> ld-shake-h
7+
* add alias:
8+
- ld-coin-h -> ld-coin
9+
10+
* removed animations:
11+
- radio
12+
- broadcast
13+
- shadow
14+
- shadow-a
15+
- bounce-a
16+
- rotate
17+
18+
* removed ( tentative )
19+
- slot
20+
- bounce-rtl
21+
- bounce-ltr
22+
- leaf

build

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,18 @@ echo "build src/ctrl.styl -> dist/ctrl.css ..."
66
echo "build src/shape.styl -> dist/shape.css ..."
77
./node_modules/.bin/stylus -p src/shape.styl > dist/shape.css
88
echo "build animations..."
9-
./node_modules/.bin/lsc tool/build-css.ls > dist/main.css
9+
./node_modules/.bin/lsc tool/build-css.ls
1010

1111
echo "merge css files into loading.css / loading.utils.css ..."
12-
cat dist/shape.css dist/ctrl.css dist/main.css > dist/loading.css
12+
cat dist/shape.css dist/ctrl.css dist/loading.css > dist/loading-bundle.css
13+
mv dist/loading-bundle.css dist/loading.css
1314
cat dist/shape.css dist/ctrl.css > dist/loading.utils.css
1415
echo "minifying loading.css / loading.utils.css ..."
1516
./node_modules/.bin/uglifycss dist/loading.css > dist/loading.min.css
1617
./node_modules/.bin/uglifycss dist/loading.utils.css > dist/loading.utils.min.css
1718
echo "zipping..."
1819
zip -r dist/loading-css.zip dist/loading.min.css dist/loading.utils.min.css
1920
echo "clean up intermediate files..."
20-
rm dist/ctrl.css dist/shape.css dist/main.css
21+
rm -f dist/ctrl.css dist/shape.css
2122

2223
echo "done."

dist/entries/beat.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.ld { transform-origin: 50% 50%; transform-box: fill-box; }
2+
@keyframes ld-beat
3+
{
4+
0% {
5+
animation-timing-function: cubic-bezier(0.1028,0.2484,0.1372,0.849);
6+
transform: scale(1);
7+
}
8+
34% {
9+
animation-timing-function: cubic-bezier(0.7116,0.2095,0.8159,0.6876);
10+
transform: scale(1.2);
11+
}
12+
68% {
13+
animation-timing-function: cubic-bezier(0.1475,0.2888,0.294,0.883);
14+
transform: scale(1.0268);
15+
}
16+
84% {
17+
animation-timing-function: cubic-bezier(0.8176,0.2193,0.867,0.6889);
18+
transform: scale(1.0932);
19+
}
20+
100% {
21+
transform: scale(1);
22+
}
23+
}
24+
.ld.ld-beat {
25+
animation: ld-beat 1s infinite linear; ;
26+
}

dist/entries/beat.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.

dist/entries/blink.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.ld { transform-origin: 50% 50%; transform-box: fill-box; }
2+
@keyframes ld-blink {
3+
0% { opacity: 1; }
4+
49.75% { opacity: 1; }
5+
50.25% { opacity: 0; }
6+
99.5% { opacity: 0; }
7+
100% { opacity: 1; }
8+
}
9+
.ld.ld-blink {
10+
animation: ld-blink 1s infinite linear; ;
11+
}

dist/entries/blink.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.

dist/entries/blur-in.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.ld { transform-origin: 50% 50%; transform-box: fill-box; }
2+
@keyframes ld-blur-in {
3+
100% { filter: blur(0); opacity: 1 }
4+
0% { filter: blur(10%); opacity: 0 }
5+
}
6+
.ld.ld-blur-in {
7+
animation: ld-blur-in 1s 1 linear; animation-fill-mode: forwards;filter: blur(10%);opacity: 0;
8+
}

dist/entries/blur-in.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.

dist/entries/blur-out.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.ld { transform-origin: 50% 50%; transform-box: fill-box; }
2+
@keyframes ld-blur-out {
3+
0% { filter: blur(0); opacity: 1 }
4+
100% { filter: blur(10%); opacity: 0 }
5+
}
6+
.ld.ld-blur-out {
7+
animation: ld-blur-out 1s 1 linear; animation-fill-mode: forwards;filter: blur(0%);opacity: 1;
8+
}

dist/entries/blur-out.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)