animation-studio 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa03c693440bb6d56076df68b7fcb97b9733cfe025cd5506feb48f36cf0004b7dc939bb8b4530391be9c9bf9a169c7111cb1280a6c74e84f2be04f0c5123f8c
|
4
|
+
data.tar.gz: 301cdee4b6278eedd74704cca431b4dd55b2bd9b1ed9920c85562df32cba3504b03308801d4380ac2ef206b0ed31ec0300444619d3f4afff191634474e835e3e
|
5
5
|
SHA1:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e60342caeb4df6a93be814d65e16b88fb4d623ba
|
7
|
+
data.tar.gz: b59fb83a7134a8d04fd23673d9d57c456f74c3ea
|
data/lib/animation-studio.rb
CHANGED
@@ -73,7 +73,7 @@ $animation-sequence-extend: true !default;
|
|
73
73
|
$frame-unit: percentage(1/($frames - 1));
|
74
74
|
|
75
75
|
// Then for the starting position, multiply that by the frame. For instance... 1 = 0%, 2 = 50%, 3 = 100%
|
76
|
-
$frame-position: $frame * $frame-unit;
|
76
|
+
$frame-position: ($frame - 1) * $frame-unit;
|
77
77
|
|
78
78
|
background: $sprite-map 0 $frame-position no-repeat;
|
79
79
|
|