saffron 0.2.0 → 0.2.2
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.
- data/.travis.yml +2 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/app/assets/stylesheets/_variables.scss +18 -18
- data/app/assets/stylesheets/entrances/_drop-in.scss +2 -2
- data/app/assets/stylesheets/entrances/_fade-in-down.scss +1 -1
- data/app/assets/stylesheets/entrances/_fade-in-left.scss +1 -1
- data/app/assets/stylesheets/entrances/_fade-in-right.scss +1 -1
- data/app/assets/stylesheets/entrances/_fade-in-up.scss +1 -1
- data/app/assets/stylesheets/entrances/_fade-in-zoom-big.scss +1 -1
- data/app/assets/stylesheets/entrances/_rise-in.scss +1 -1
- data/app/assets/stylesheets/entrances/_slide-in.scss +4 -4
- data/app/assets/stylesheets/entrances/_stretch.scss +6 -6
- data/app/assets/stylesheets/entrances/_turn-in.scss +8 -8
- data/app/assets/stylesheets/exits/_compress.scss +2 -2
- data/app/assets/stylesheets/exits/_drop-out.scss +1 -1
- data/app/assets/stylesheets/exits/_fade-out-down.scss +1 -1
- data/app/assets/stylesheets/exits/_fade-out-left.scss +1 -1
- data/app/assets/stylesheets/exits/_fade-out-right.scss +1 -1
- data/app/assets/stylesheets/exits/_fade-out-up.scss +1 -1
- data/app/assets/stylesheets/exits/_poof.scss +2 -2
- data/app/assets/stylesheets/exits/_rise-out.scss +1 -1
- data/app/assets/stylesheets/exits/_slide-out.scss +4 -4
- data/app/assets/stylesheets/exits/_turn-out.scss +2 -2
- data/app/assets/stylesheets/helpers/_keyframes.scss +1 -1
- data/app/assets/stylesheets/helpers/_prefix.scss +1 -1
- data/app/assets/stylesheets/helpers/_transform.scss +2 -2
- data/app/assets/stylesheets/helpers/_transition.scss +1 -1
- data/app/assets/stylesheets/in-place/_around-the-world.scss +2 -2
- data/app/assets/stylesheets/in-place/_contract.scss +1 -2
- data/app/assets/stylesheets/in-place/_enlarge.scss +1 -2
- data/app/assets/stylesheets/in-place/_float.scss +3 -3
- data/app/assets/stylesheets/in-place/_pulsate.scss +1 -1
- data/app/assets/stylesheets/in-place/_quiver.scss +7 -7
- data/app/assets/stylesheets/in-place/_shake.scss +5 -5
- data/app/assets/stylesheets/in-place/_sunrise.scss +3 -3
- data/app/assets/stylesheets/in-place/_sway.scss +3 -3
- data/app/assets/stylesheets/in-place/_teeter.scss +6 -6
- data/bower.json +29 -0
- data/features/install.feature +0 -1
- data/features/update.feature +0 -1
- data/features/version.feature +0 -1
- data/lib/saffron/version.rb +1 -1
- data/sache.json +5 -0
- data/saffron/_variables.scss +18 -18
- data/saffron/entrances/_drop-in.scss +2 -2
- data/saffron/entrances/_fade-in-down.scss +1 -1
- data/saffron/entrances/_fade-in-left.scss +1 -1
- data/saffron/entrances/_fade-in-right.scss +1 -1
- data/saffron/entrances/_fade-in-up.scss +1 -1
- data/saffron/entrances/_fade-in-zoom-big.scss +1 -1
- data/saffron/entrances/_rise-in.scss +1 -1
- data/saffron/entrances/_slide-in.scss +4 -4
- data/saffron/entrances/_stretch.scss +6 -6
- data/saffron/entrances/_turn-in.scss +8 -8
- data/saffron/exits/_compress.scss +2 -2
- data/saffron/exits/_drop-out.scss +1 -1
- data/saffron/exits/_fade-out-down.scss +1 -1
- data/saffron/exits/_fade-out-left.scss +1 -1
- data/saffron/exits/_fade-out-right.scss +1 -1
- data/saffron/exits/_fade-out-up.scss +1 -1
- data/saffron/exits/_poof.scss +2 -2
- data/saffron/exits/_rise-out.scss +1 -1
- data/saffron/exits/_slide-out.scss +4 -4
- data/saffron/exits/_turn-out.scss +2 -2
- data/saffron/helpers/_keyframes.scss +1 -1
- data/saffron/helpers/_prefix.scss +1 -1
- data/saffron/helpers/_transform.scss +2 -2
- data/saffron/helpers/_transition.scss +1 -1
- data/saffron/in-place/_around-the-world.scss +2 -2
- data/saffron/in-place/_contract.scss +1 -2
- data/saffron/in-place/_enlarge.scss +1 -2
- data/saffron/in-place/_float.scss +3 -3
- data/saffron/in-place/_pulsate.scss +1 -1
- data/saffron/in-place/_quiver.scss +7 -7
- data/saffron/in-place/_shake.scss +5 -5
- data/saffron/in-place/_sunrise.scss +3 -3
- data/saffron/in-place/_sway.scss +3 -3
- data/saffron/in-place/_teeter.scss +6 -6
- data/tasks/compiled/saffron.css +850 -260
- data/tasks/compiled/test.css +853 -288
- data/tasks/package.json +2 -2
- data/tasks/test.scss +1 -1
- metadata +6 -4
@@ -3,34 +3,34 @@
|
|
3
3
|
@include transform(translate3d(2px, 1px, 0) rotate(0deg));
|
4
4
|
}
|
5
5
|
10% {
|
6
|
-
@include transform(translate3d(-1px, 2px, 0) rotate($quiver-angle));
|
6
|
+
@include transform(translate3d(-1px, 2px, 0) rotate($saf-quiver-angle));
|
7
7
|
}
|
8
8
|
20% {
|
9
|
-
@include transform(translate3d(-3px, 0) rotate($quiver-angle * -1));
|
9
|
+
@include transform(translate3d(-3px, 0) rotate($saf-quiver-angle * -1));
|
10
10
|
}
|
11
11
|
30% {
|
12
12
|
@include transform(translate3d(0, 2px, 0) rotate(0deg));
|
13
13
|
}
|
14
14
|
40% {
|
15
|
-
@include transform(translate3d(1px, -1px, 0) rotate($quiver-angle));
|
15
|
+
@include transform(translate3d(1px, -1px, 0) rotate($saf-quiver-angle));
|
16
16
|
}
|
17
17
|
50% {
|
18
|
-
@include transform(translate3d(-1px, 2px, 0) rotate($quiver-angle * -1));
|
18
|
+
@include transform(translate3d(-1px, 2px, 0) rotate($saf-quiver-angle * -1));
|
19
19
|
}
|
20
20
|
60% {
|
21
21
|
@include transform(translate3d(-3px, 1px, 0) rotate(0deg));
|
22
22
|
}
|
23
23
|
70% {
|
24
|
-
@include transform(translate3d(2px, 1px, 0) rotate($quiver-angle));
|
24
|
+
@include transform(translate3d(2px, 1px, 0) rotate($saf-quiver-angle));
|
25
25
|
}
|
26
26
|
80% {
|
27
|
-
@include transform(translate3d(-1px, -1px, 0) rotate($quiver-angle * -1));
|
27
|
+
@include transform(translate3d(-1px, -1px, 0) rotate($saf-quiver-angle * -1));
|
28
28
|
}
|
29
29
|
90% {
|
30
30
|
@include transform(translate3d(2px, 2px, 0) rotate(0deg));
|
31
31
|
}
|
32
32
|
100% {
|
33
|
-
@include transform(translate3d(1px, -2px, 0) rotate($quiver-angle));
|
33
|
+
@include transform(translate3d(1px, -2px, 0) rotate($saf-quiver-angle));
|
34
34
|
}
|
35
35
|
|
36
36
|
}
|
@@ -3,19 +3,19 @@
|
|
3
3
|
@include transform(translateX(0) translateZ(0));
|
4
4
|
}
|
5
5
|
15% {
|
6
|
-
@include transform(translateX($shake-distance));
|
6
|
+
@include transform(translateX($saf-shake-distance));
|
7
7
|
}
|
8
8
|
35% {
|
9
|
-
@include transform(translateX($shake-distance * -1));
|
9
|
+
@include transform(translateX($saf-shake-distance * -1));
|
10
10
|
}
|
11
11
|
50% {
|
12
|
-
@include transform(translateX($shake-distance / 2));
|
12
|
+
@include transform(translateX($saf-shake-distance / 2));
|
13
13
|
}
|
14
14
|
65% {
|
15
|
-
@include transform(translateX($shake-distance / 2 * -1));
|
15
|
+
@include transform(translateX($saf-shake-distance / 2 * -1));
|
16
16
|
}
|
17
17
|
85% {
|
18
|
-
@include transform(translateX($shake-distance / 3));
|
18
|
+
@include transform(translateX($saf-shake-distance / 3));
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
@include keyframes(sunrise) {
|
2
2
|
0% {
|
3
|
-
@include transform(rotate(0deg) translate($sunrise-arch) rotate(0deg));
|
3
|
+
@include transform(rotate(0deg) translate($saf-sunrise-arch) rotate(0deg));
|
4
4
|
}
|
5
5
|
100% {
|
6
|
-
@include transform(rotate(180deg) translate($sunrise-arch) rotate(-180deg));
|
6
|
+
@include transform(rotate(180deg) translate($saf-sunrise-arch) rotate(-180deg));
|
7
7
|
}
|
8
8
|
}
|
9
9
|
|
10
10
|
@mixin sunrise($duration: 4s, $delay: 0s, $fill-mode: both, $count: 1, $timing: ease-in-out) {
|
11
11
|
@include animation(sunrise $count $duration $delay $fill-mode $timing);
|
12
|
-
}
|
12
|
+
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
@include keyframes(sway) {
|
2
2
|
0%, 50%, 100% {
|
3
|
-
@include transform(rotate($sway-angle) translateZ(0));
|
3
|
+
@include transform(rotate($saf-sway-angle) translateZ(0));
|
4
4
|
}
|
5
5
|
25% {
|
6
|
-
@include transform(rotate($sway-angle * -1));
|
6
|
+
@include transform(rotate($saf-sway-angle * -1));
|
7
7
|
}
|
8
8
|
75% {
|
9
|
-
@include transform(rotate($sway-angle * -1));
|
9
|
+
@include transform(rotate($saf-sway-angle * -1));
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
@@ -3,22 +3,22 @@
|
|
3
3
|
@include transform(rotate(0deg) translateZ(0));
|
4
4
|
}
|
5
5
|
15% {
|
6
|
-
@include transform(rotate($teeter-angle));
|
6
|
+
@include transform(rotate($saf-teeter-angle));
|
7
7
|
}
|
8
8
|
30% {
|
9
|
-
@include transform(rotate($teeter-angle * -1));
|
9
|
+
@include transform(rotate($saf-teeter-angle * -1));
|
10
10
|
}
|
11
11
|
45% {
|
12
|
-
@include transform(rotate($teeter-angle / 2));
|
12
|
+
@include transform(rotate($saf-teeter-angle / 2));
|
13
13
|
}
|
14
14
|
60% {
|
15
|
-
@include transform(rotate($teeter-angle / 2 * -1));
|
15
|
+
@include transform(rotate($saf-teeter-angle / 2 * -1));
|
16
16
|
}
|
17
17
|
73% {
|
18
|
-
@include transform(rotate($teeter-angle / 3));
|
18
|
+
@include transform(rotate($saf-teeter-angle / 3));
|
19
19
|
}
|
20
20
|
86% {
|
21
|
-
@include transform(rotate($teeter-angle / 3 * -1));
|
21
|
+
@include transform(rotate($saf-teeter-angle / 3 * -1));
|
22
22
|
}
|
23
23
|
}
|
24
24
|
|
data/bower.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"name": "saffron",
|
3
|
+
"version": "0.2.2",
|
4
|
+
"homepage": "https://github.com/corporadobob/saffron",
|
5
|
+
"authors": [
|
6
|
+
"JC <j@colindres.me>"
|
7
|
+
],
|
8
|
+
"description": "A simple sass mixin library for animations and transitions.",
|
9
|
+
"main": "saffron/saffron.scss",
|
10
|
+
"keywords": [
|
11
|
+
"sass",
|
12
|
+
"animations"
|
13
|
+
],
|
14
|
+
"license": "MIT",
|
15
|
+
"ignore": [
|
16
|
+
"**/.*",
|
17
|
+
"node_modules",
|
18
|
+
"bower_components",
|
19
|
+
"app",
|
20
|
+
"bin",
|
21
|
+
"features",
|
22
|
+
"lib",
|
23
|
+
"tasks",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
26
|
+
"Rakefile",
|
27
|
+
"saffron.gemspec"
|
28
|
+
]
|
29
|
+
}
|
data/features/install.feature
CHANGED
data/features/update.feature
CHANGED
data/features/version.feature
CHANGED
data/lib/saffron/version.rb
CHANGED
data/sache.json
ADDED
data/saffron/_variables.scss
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
$prefixes: ("webkit", "moz", "o", "ms", "spec") !default;
|
2
|
-
$translateY-distance: 1.334em !default;
|
3
|
-
$translateX-distance: 1.334em !default;
|
4
|
-
$drop-rise-distance: 10em !default;
|
5
|
-
$shake-distance: 0.55em !default;
|
6
|
-
$teeter-angle: 10deg !default;
|
7
|
-
$quiver-angle: 2deg !default;
|
8
|
-
$float-bob-distance: 0.25em !default;
|
9
|
-
$float-bob-angle: 1deg !default;
|
10
|
-
$sway-angle: 3deg !default;
|
11
|
-
$turn-angle: 225deg !default;
|
12
|
-
$pulsate-scale: 1.1 !default;
|
13
|
-
$stretch-compress-exageration: 1.05 !default;
|
14
|
-
$distance-from-origin: 5em !default;
|
15
|
-
$sunrise-arch: -15em !default;
|
16
|
-
$enlarge-contract-multiple: 1.15 !default;
|
17
|
-
$enlarge-contract-jump: 1em !default;
|
18
|
-
$flip-scale: 1.2 !default;
|
1
|
+
$saf-prefixes: ("webkit", "moz", "o", "ms", "spec") !default;
|
2
|
+
$saf-translateY-distance: 1.334em !default;
|
3
|
+
$saf-translateX-distance: 1.334em !default;
|
4
|
+
$saf-drop-rise-distance: 10em !default;
|
5
|
+
$saf-shake-distance: 0.55em !default;
|
6
|
+
$saf-teeter-angle: 10deg !default;
|
7
|
+
$saf-quiver-angle: 2deg !default;
|
8
|
+
$saf-float-bob-distance: 0.25em !default;
|
9
|
+
$saf-float-bob-angle: 1deg !default;
|
10
|
+
$saf-sway-angle: 3deg !default;
|
11
|
+
$saf-turn-angle: 225deg !default;
|
12
|
+
$saf-pulsate-scale: 1.1 !default;
|
13
|
+
$saf-stretch-compress-exageration: 1.05 !default;
|
14
|
+
$saf-distance-from-origin: 5em !default;
|
15
|
+
$saf-sunrise-arch: -15em !default;
|
16
|
+
$saf-enlarge-contract-multiple: 1.15 !default;
|
17
|
+
$saf-enlarge-contract-jump: 1em !default;
|
18
|
+
$saf-flip-scale: 1.2 !default;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@include keyframes(dropIn) {
|
2
2
|
0% {
|
3
3
|
opacity: 0;
|
4
|
-
@include transform(translateY($drop-rise-distance * -1) rotate(0) translateZ(0));
|
4
|
+
@include transform(translateY($saf-drop-rise-distance * -1) rotate(0) translateZ(0));
|
5
5
|
}
|
6
6
|
10% {
|
7
|
-
@include transform(translateY($drop-rise-distance * -1) rotate(-40deg));
|
7
|
+
@include transform(translateY($saf-drop-rise-distance * -1) rotate(-40deg));
|
8
8
|
}
|
9
9
|
90% {
|
10
10
|
opacity: 1;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@include keyframes(slideInLeft) {
|
2
2
|
0% {
|
3
3
|
opacity: 0;
|
4
|
-
@include transform(translateX($translateX-distance * -10) translateZ(0));
|
4
|
+
@include transform(translateX($saf-translateX-distance * -10) translateZ(0));
|
5
5
|
}
|
6
6
|
65% {
|
7
7
|
opacity: 1;
|
8
|
-
@include transform(translateX($translateX-distance));
|
8
|
+
@include transform(translateX($saf-translateX-distance));
|
9
9
|
}
|
10
10
|
100% {
|
11
11
|
@include transform(translateX(0));
|
@@ -19,11 +19,11 @@
|
|
19
19
|
@include keyframes(slideInRight) {
|
20
20
|
0% {
|
21
21
|
opacity: 0;
|
22
|
-
@include transform(translateX($translateX-distance * 10) translateZ(0));
|
22
|
+
@include transform(translateX($saf-translateX-distance * 10) translateZ(0));
|
23
23
|
}
|
24
24
|
65% {
|
25
25
|
opacity: 1;
|
26
|
-
@include transform(translateX($translateX-distance * -1));
|
26
|
+
@include transform(translateX($saf-translateX-distance * -1));
|
27
27
|
}
|
28
28
|
100% {
|
29
29
|
@include transform(translateX(0));
|
@@ -1,21 +1,21 @@
|
|
1
1
|
@include keyframes(stretch) {
|
2
2
|
0% {
|
3
|
-
@include transform(scaleY(0)
|
3
|
+
@include transform(scaleY(0));
|
4
4
|
}
|
5
5
|
40% {
|
6
|
-
@include transform(scaleY($stretch-compress-exageration));
|
6
|
+
@include transform(scaleY($saf-stretch-compress-exageration));
|
7
7
|
}
|
8
8
|
60% {
|
9
|
-
@include transform(scaleY($stretch-compress-exageration - ($stretch-compress-exageration * .075)));
|
9
|
+
@include transform(scaleY($saf-stretch-compress-exageration - ($saf-stretch-compress-exageration * .075)));
|
10
10
|
}
|
11
11
|
80% {
|
12
|
-
@include transform(scaleY($stretch-compress-exageration));
|
12
|
+
@include transform(scaleY($saf-stretch-compress-exageration));
|
13
13
|
}
|
14
14
|
100% {
|
15
|
-
@include transform(scaleY($stretch-compress-exageration - ($stretch-compress-exageration * .075)));
|
15
|
+
@include transform(scaleY($saf-stretch-compress-exageration - ($saf-stretch-compress-exageration * .075)));
|
16
16
|
}
|
17
17
|
80% {
|
18
|
-
@include transform(scaleY($stretch-compress-exageration - ($stretch-compress-exageration * .025)));
|
18
|
+
@include transform(scaleY($saf-stretch-compress-exageration - ($saf-stretch-compress-exageration * .025)));
|
19
19
|
}
|
20
20
|
100% {
|
21
21
|
@include transform(scaleY(1));
|
@@ -1,7 +1,7 @@
|
|
1
|
-
@include keyframes(
|
1
|
+
@include keyframes(turnInDown) {
|
2
2
|
0% {
|
3
3
|
opacity: 0;
|
4
|
-
@include transform(perspective(500px) rotateX($turn-angle * -1) translateZ(150px));
|
4
|
+
@include transform(perspective(500px) rotateX($saf-turn-angle * -1) translateZ(150px));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 1;
|
@@ -10,14 +10,14 @@
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
|
-
@mixin
|
14
|
-
@include animation(
|
13
|
+
@mixin turnInDown($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
14
|
+
@include animation(turnInDown $duration $delay $fill-mode);
|
15
15
|
}
|
16
16
|
|
17
|
-
@include keyframes(
|
17
|
+
@include keyframes(turnInUp) {
|
18
18
|
0% {
|
19
19
|
opacity: 0;
|
20
|
-
@include transform(perspective(500px) rotateX($turn-angle) translateZ(150px));
|
20
|
+
@include transform(perspective(500px) rotateX($saf-turn-angle) translateZ(150px));
|
21
21
|
}
|
22
22
|
100% {
|
23
23
|
opacity: 1;
|
@@ -26,6 +26,6 @@
|
|
26
26
|
}
|
27
27
|
}
|
28
28
|
|
29
|
-
@mixin
|
30
|
-
@include animation(
|
29
|
+
@mixin turnInUp($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
30
|
+
@include animation(turnInUp $duration $delay $fill-mode);
|
31
31
|
}
|
@@ -3,10 +3,10 @@
|
|
3
3
|
@include transform(scaleY(1) translateZ(0));
|
4
4
|
}
|
5
5
|
30% {
|
6
|
-
@include transform(scaleY($stretch-compress-exageration));
|
6
|
+
@include transform(scaleY($saf-stretch-compress-exageration));
|
7
7
|
}
|
8
8
|
50% {
|
9
|
-
@include transform(scaleY($stretch-compress-exageration - ($stretch-compress-exageration * .075)));
|
9
|
+
@include transform(scaleY($saf-stretch-compress-exageration - ($saf-stretch-compress-exageration * .075)));
|
10
10
|
}
|
11
11
|
100% {
|
12
12
|
@include transform(scaleY(0));
|