@bootkit/move 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Deploy to NPM
5
+
6
+ on:
7
+ push:
8
+ branches: [ "master" ]
9
+
10
+ jobs:
11
+ # build:
12
+ # runs-on: ubuntu-latest
13
+ # steps:
14
+ # - uses: actions/checkout@v4
15
+ # - uses: actions/setup-node@v4
16
+ # with:
17
+ # node-version: 20
18
+ # - run: npm ci
19
+ # - run: npm run build
20
+
21
+ publish-npm:
22
+ # needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://registry.npmjs.org/
30
+ env:
31
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
32
+ - run: npm publish
package/README.md ADDED
Binary file
package/index.html ADDED
@@ -0,0 +1,14 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Bootkit Move</title>
6
+ <base href="/">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1">
8
+ <meta name="referrer" content="no-referrer-when-downgrade" />
9
+ <style>
10
+ </style>
11
+ </head>
12
+ <body class="">
13
+ </body>
14
+ </html>
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@bootkit/move",
3
+ "version": "1.0.0",
4
+ "description": "A free, simple and light CSS animation library.",
5
+ "author": "Bootkit",
6
+ "license": "MIT",
7
+ "homepage": "https://bootkitlib.github.io/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/bootkitlib/move"
11
+ },
12
+ "keywords": [
13
+ "css",
14
+ "animation",
15
+ "library",
16
+ "bootkit",
17
+ "move"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "scripts": {
23
+ "publish-npm": "npm run build & npm publish --access public"
24
+ },
25
+ "devDependencies": {}
26
+ }
@@ -0,0 +1,57 @@
1
+ @keyframes fade-in {
2
+ from {
3
+ opacity: 0;
4
+ }
5
+ to {
6
+ opacity: 1;
7
+ }
8
+ }
9
+
10
+ @keyframes fade-in-start {
11
+ from {
12
+ opacity: 0;
13
+ transform: translateX(-25%);
14
+ }
15
+ to {
16
+ opacity: 1;
17
+ transform: translateX(0);
18
+ }
19
+ }
20
+
21
+ @keyframes fade-in-end {
22
+ from {
23
+ opacity: 0;
24
+ transform: translateX(25%);
25
+ }
26
+ to {
27
+ opacity: 1;
28
+ transform: translateX(0);
29
+ }
30
+ }
31
+
32
+ @keyframes fade-in-up {
33
+ from {
34
+ opacity: 0;
35
+ transform: translateY(25%);
36
+ }
37
+ to {
38
+ opacity: 1;
39
+ transform: translateY(0);
40
+ }
41
+ }
42
+
43
+ .fade-in {
44
+ animation-name: fade-in;
45
+ }
46
+
47
+ .fade-in-start {
48
+ animation-name: fade-in-start;
49
+ }
50
+
51
+ .fade-in-end {
52
+ animation-name: fade-in-end;
53
+ }
54
+
55
+ .fade-in-up {
56
+ animation-name: fade-in-up;
57
+ }
@@ -0,0 +1,27 @@
1
+ @keyframes fade-out {
2
+ from {
3
+ opacity: 1;
4
+ }
5
+ to {
6
+ opacity: 0;
7
+ }
8
+ }
9
+
10
+ @keyframes fade-out-down {
11
+ from {
12
+ opacity: 1;
13
+ transform: translateY(0%);
14
+ }
15
+ to {
16
+ opacity: 0;
17
+ transform: translateY(5%);
18
+ }
19
+ }
20
+
21
+ .fade-out {
22
+ animation-name: fade-out;
23
+ }
24
+
25
+ .fade-out-down {
26
+ animation-name: fade-out-down;
27
+ }
@@ -0,0 +1,15 @@
1
+ @keyframes zoom-in {
2
+ from {
3
+ transform: scale(.5);
4
+ opacity: .5;
5
+ }
6
+
7
+ to {
8
+ transform: scale(1);
9
+ opacity: 1;
10
+ }
11
+ }
12
+
13
+ .zoom-in {
14
+ animation-name: zoom-in;
15
+ }
File without changes
package/src/base.css ADDED
@@ -0,0 +1,73 @@
1
+ .animated {
2
+ animation-duration: var(--animate-duration);
3
+ animation-fill-mode: both;
4
+ }
5
+
6
+ .animated.infinite {
7
+ animation-iteration-count: infinite;
8
+ }
9
+
10
+ .animated.repeat-1 {
11
+ animation-iteration-count: var(--animate-repeat);
12
+ }
13
+
14
+ .animated.repeat-2 {
15
+ animation-iteration-count: calc(var(--animate-repeat) * 2);
16
+ }
17
+
18
+ .animated.repeat-3 {
19
+ animation-iteration-count: calc(var(--animate-repeat) * 3);
20
+ }
21
+
22
+ .animated.delay-1s {
23
+ animation-delay: var(--animate-delay);
24
+ }
25
+
26
+ .animated.delay-2s {
27
+ animation-delay: calc(var(--animate-delay) * 2);
28
+ }
29
+
30
+ .animated.delay-3s {
31
+ animation-delay: calc(var(--animate-delay) * 3);
32
+ }
33
+
34
+ .animated.delay-4s {
35
+ animation-delay: calc(var(--animate-delay) * 4);
36
+ }
37
+
38
+ .animated.delay-5s {
39
+ animation-delay: calc(var(--animate-delay) * 5);
40
+ }
41
+
42
+ .animated.faster {
43
+ animation-duration: calc(var(--animate-duration) / 2);
44
+ }
45
+
46
+ .animated.fast {
47
+ animation-duration: calc(var(--animate-duration) * 0.8);
48
+ }
49
+
50
+ .animated.slow {
51
+ animation-duration: calc(var(--animate-duration) * 2);
52
+ }
53
+
54
+ .animated.slower {
55
+ animation-duration: calc(var(--animate-duration) * 3);
56
+ }
57
+
58
+
59
+ .bk-opacity-0 {
60
+ opacity: 0;
61
+ }
62
+
63
+ @media print, (prefers-reduced-motion: reduce) {
64
+ .animated {
65
+ animation-duration: 1ms !important;
66
+ transition-duration: 1ms !important;
67
+ animation-iteration-count: 1 !important;
68
+ }
69
+
70
+ .animated[class*='Out'] {
71
+ opacity: 0;
72
+ }
73
+ }
package/src/move.css ADDED
@@ -0,0 +1,8 @@
1
+ @import './vars.css';
2
+ @import './base.css';
3
+
4
+ @import './animations/fade-in.css';
5
+ @import './animations/fade-in.css';
6
+ @import './animations/fade-out.css';
7
+ @import './animations/zoom-in.css';
8
+ @import './animations/zoom-out.css';
package/src/vars.css ADDED
@@ -0,0 +1,5 @@
1
+ :root {
2
+ --animate-duration: 1s;
3
+ --animate-delay: 1s;
4
+ --animate-repeat: 1;
5
+ }