summaryrefslogtreecommitdiff
path: root/src/animation.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation.js')
-rw-r--r--src/animation.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/animation.js b/src/animation.js
index d4e1897..214fa1c 100644
--- a/src/animation.js
+++ b/src/animation.js
@@ -1,8 +1,10 @@
+import config from './config';
+
export default class Animation {
static calculateFinalState(element) {
let finals = {}
- const margin = 50
+ const margin = config.margin;
const nw = element.naturalWidth;
const nh = element.naturalHeight;
const ratio = nw / nh;