-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ffe-animations): legg til pakke med animasjonene
- Loading branch information
1 parent
243b10a
commit 1a94de4
Showing
10 changed files
with
121,257 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# @sb1/ffe-animations | ||
|
||
## Install | ||
|
||
``` | ||
npm install --save @sb1/ffe-animations | ||
``` | ||
|
||
## Usage | ||
|
||
Stores and exports the lottie animations in JSON format |
52,747 changes: 52,747 additions & 0 deletions
52,747
packages/ffe-animations/animations/face-recognition.json
Large diffs are not rendered by default.
Oops, something went wrong.
7,911 changes: 7,911 additions & 0 deletions
7,911
packages/ffe-animations/animations/finger-recognition.json
Large diffs are not rendered by default.
Oops, something went wrong.
14,881 changes: 14,881 additions & 0 deletions
14,881
packages/ffe-animations/animations/high-five.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
18,572 changes: 18,572 additions & 0 deletions
18,572
packages/ffe-animations/animations/woman-at-table.json
Large diffs are not rendered by default.
Oops, something went wrong.
19,212 changes: 19,212 additions & 0 deletions
19,212
packages/ffe-animations/animations/woman-shrugging.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const FILE_PATH = path.join(__dirname, 'animations'); | ||
|
||
fs.readdirSync(FILE_PATH).forEach(file => { | ||
if (file.indexOf('.json' > -1)) | ||
exports[file.replace('.json', '')] = require(`./animations/${file}`); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "ffe-animations", | ||
"version": "1.0.0", | ||
"description": "Lottie animations for FFE animations", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "node index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://[email protected]/SpareBank1/designsystem.git" | ||
}, | ||
"keywords": [ | ||
"ffe" | ||
], | ||
"author": "SpareBank 1", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/SpareBank1/designsystem/issues" | ||
}, | ||
"homepage": "https://github.com/SpareBank1/designsystem#readme" | ||
} |