animation-studio 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/animation-studio.rb +2 -2
- data/stylesheets/animation-studio/_animation-sequence.scss +6 -2
- data/templates/project/Gemfile.txt +1 -1
- data/templates/project/alice/curious.png +0 -0
- data/templates/project/alice/sleeping.png +0 -0
- data/templates/project/alice/sleepy.png +0 -0
- data/templates/project/alice-sc050641834.png +0 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ce6bb0ff3e0bbe64b9d04698643dca16ae41f2e12602e0856c005b20436627e6b96516bc781e6725ecbf7b50f7af150d4bb1770ad676d3527fe507603d791b8
|
4
|
+
data.tar.gz: 644b6a95cdcf8bf5f28f950e544c8c88f1e0b5cf85ee36f075bd5b50aedb58677f40599612c00270977d885ce9d3438b058b9b088166e6bd1825b3dafbf9a4f7
|
5
5
|
SHA1:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15c080d3cfb4a396f965f48f7a91e5ef1503137f
|
7
|
+
data.tar.gz: 93b0df8764e13c77c5117d5a5169e13d1b4afed2
|
data/lib/animation-studio.rb
CHANGED
@@ -20,8 +20,8 @@ Compass::Frameworks.register('animation-studio', :stylesheets_directory => style
|
|
20
20
|
# a prerelease version
|
21
21
|
# Date is in the form of YYYY-MM-DD
|
22
22
|
module AnimationStudio
|
23
|
-
VERSION = "0.1.
|
24
|
-
DATE = "2013-
|
23
|
+
VERSION = "0.1.5"
|
24
|
+
DATE = "2013-12-01"
|
25
25
|
end
|
26
26
|
|
27
27
|
# This is where any custom SassScript should be placed. The functions will be
|
@@ -68,9 +68,13 @@ $animation-sequence-extend: true !default;
|
|
68
68
|
$sprite-path: sprite-path($sprite-map);
|
69
69
|
$height: image-height($sprite-path);
|
70
70
|
$frames: length(sprite-names($sprite-map));
|
71
|
-
$frame-height: $height/$frames;
|
72
|
-
$frame-position: percentage((($frame * ($frame-height)) - $frame-height + ($frame-height/$frame)) / $height);
|
73
71
|
|
72
|
+
// Find what the unit of increment is for each frame: 3 = 50%, 4 = 33%, 5 = 25% etc.
|
73
|
+
$frame-unit: percentage(1/($frames - 1));
|
74
|
+
|
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;
|
77
|
+
|
74
78
|
background: $sprite-map 0 $frame-position no-repeat;
|
75
79
|
|
76
80
|
@if $generate-dimensions {
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: animation-studio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard, Rachel Nabors
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-01 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|
@@ -47,7 +47,11 @@ files:
|
|
47
47
|
- templates/project/alice/alice-frightened_1.png
|
48
48
|
- templates/project/alice/alice-frightened_2.png
|
49
49
|
- templates/project/alice/awake.png
|
50
|
+
- templates/project/alice/curious.png
|
51
|
+
- templates/project/alice/sleeping.png
|
52
|
+
- templates/project/alice/sleepy.png
|
50
53
|
- templates/project/alice-s70adcc6818.png
|
54
|
+
- templates/project/alice-sc050641834.png
|
51
55
|
- templates/project/Gemfile.txt
|
52
56
|
- templates/project/tuna-walk/tuna-walk_01.png
|
53
57
|
- templates/project/tuna-walk/tuna-walk_02.png
|