animate-scss 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/.gitignore +17 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +58 -0
  6. data/Rakefile +7 -0
  7. data/animate-scss.gemspec +25 -0
  8. data/lib/animate-scss.rb +2 -0
  9. data/lib/animate/engine.rb +4 -0
  10. data/lib/animate/version.rb +3 -0
  11. data/vendor/assets/stylesheets/animate.scss +24 -0
  12. data/vendor/assets/stylesheets/animate/bounce.css +29 -0
  13. data/vendor/assets/stylesheets/animate/bounceIn.css +86 -0
  14. data/vendor/assets/stylesheets/animate/bounceInDown.css +86 -0
  15. data/vendor/assets/stylesheets/animate/bounceInLeft.css +86 -0
  16. data/vendor/assets/stylesheets/animate/bounceInRight.css +86 -0
  17. data/vendor/assets/stylesheets/animate/bounceInUp.css +85 -0
  18. data/vendor/assets/stylesheets/animate/bounceOut.css +86 -0
  19. data/vendor/assets/stylesheets/animate/bounceOutDown.css +70 -0
  20. data/vendor/assets/stylesheets/animate/bounceOutLeft.css +70 -0
  21. data/vendor/assets/stylesheets/animate/bounceOutRight.css +70 -0
  22. data/vendor/assets/stylesheets/animate/bounceOutUp.css +70 -0
  23. data/vendor/assets/stylesheets/animate/fadeIn.css +26 -0
  24. data/vendor/assets/stylesheets/animate/fadeInDown.css +54 -0
  25. data/vendor/assets/stylesheets/animate/fadeInDownBig.css +54 -0
  26. data/vendor/assets/stylesheets/animate/fadeInLeft.css +54 -0
  27. data/vendor/assets/stylesheets/animate/fadeInLeftBig.css +51 -0
  28. data/vendor/assets/stylesheets/animate/fadeInRight.css +54 -0
  29. data/vendor/assets/stylesheets/animate/fadeInRightBig.css +54 -0
  30. data/vendor/assets/stylesheets/animate/fadeInUp.css +54 -0
  31. data/vendor/assets/stylesheets/animate/fadeInUpBig.css +54 -0
  32. data/vendor/assets/stylesheets/animate/fadeOut.css +26 -0
  33. data/vendor/assets/stylesheets/animate/fadeOutDown.css +54 -0
  34. data/vendor/assets/stylesheets/animate/fadeOutDownBig.css +54 -0
  35. data/vendor/assets/stylesheets/animate/fadeOutLeft.css +54 -0
  36. data/vendor/assets/stylesheets/animate/fadeOutLeftBig.css +54 -0
  37. data/vendor/assets/stylesheets/animate/fadeOutRight.css +54 -0
  38. data/vendor/assets/stylesheets/animate/fadeOutRightBig.css +51 -0
  39. data/vendor/assets/stylesheets/animate/fadeOutUp.css +51 -0
  40. data/vendor/assets/stylesheets/animate/fadeOutUpBig.css +54 -0
  41. data/vendor/assets/stylesheets/animate/flash.css +26 -0
  42. data/vendor/assets/stylesheets/animate/flip.css +103 -0
  43. data/vendor/assets/stylesheets/animate/flipInX.css +87 -0
  44. data/vendor/assets/stylesheets/animate/flipInY.css +87 -0
  45. data/vendor/assets/stylesheets/animate/flipOutX.css +54 -0
  46. data/vendor/assets/stylesheets/animate/flipOutY.css +51 -0
  47. data/vendor/assets/stylesheets/animate/hinge.css +38 -0
  48. data/vendor/assets/stylesheets/animate/lightSpeedIn.css +39 -0
  49. data/vendor/assets/stylesheets/animate/lightSpeedOut.css +31 -0
  50. data/vendor/assets/stylesheets/animate/pulse.css +29 -0
  51. data/vendor/assets/stylesheets/animate/rollIn.css +28 -0
  52. data/vendor/assets/stylesheets/animate/rollOut.css +56 -0
  53. data/vendor/assets/stylesheets/animate/rotateIn.css +59 -0
  54. data/vendor/assets/stylesheets/animate/rotateInDownLeft.css +62 -0
  55. data/vendor/assets/stylesheets/animate/rotateInDownRight.css +62 -0
  56. data/vendor/assets/stylesheets/animate/rotateInUpLeft.css +62 -0
  57. data/vendor/assets/stylesheets/animate/rotateInUpRight.css +62 -0
  58. data/vendor/assets/stylesheets/animate/rotateOut.css +62 -0
  59. data/vendor/assets/stylesheets/animate/rotateOutDownLeft.css +62 -0
  60. data/vendor/assets/stylesheets/animate/rotateOutDownRight.css +62 -0
  61. data/vendor/assets/stylesheets/animate/rotateOutUpLeft.css +62 -0
  62. data/vendor/assets/stylesheets/animate/rotateOutUpRight.css +62 -0
  63. data/vendor/assets/stylesheets/animate/shake.css +30 -0
  64. data/vendor/assets/stylesheets/animate/swing.css +43 -0
  65. data/vendor/assets/stylesheets/animate/tada.css +38 -0
  66. data/vendor/assets/stylesheets/animate/wiggle.css +67 -0
  67. data/vendor/assets/stylesheets/animate/wobble.css +48 -0
  68. metadata +167 -0
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
@@ -0,0 +1,3 @@
1
+ [submodule "animate.css"]
2
+ path = animate.css
3
+ url = git@github.com:daneden/animate.css.git
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in animate.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Eric J. Holmes
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,58 @@
1
+ # Animate.scss
2
+
3
+ [Animate.css](https://github.com/daneden/animate.css) for the Rails asset
4
+ pipeline.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ gem 'animate-scss'
11
+
12
+ And then execute:
13
+
14
+ $ bundle
15
+
16
+ Or install it yourself as:
17
+
18
+ $ gem install animate
19
+
20
+ ## Usage
21
+
22
+ @import animations that you want.
23
+
24
+ ```scss
25
+ @import 'animate/bounce';
26
+ @import 'animate/fadeIn';
27
+ ```
28
+
29
+ Include an animation on an element.
30
+
31
+ ```scss
32
+ .element {
33
+ @include animate(fadeIn, 1s);
34
+ }
35
+ ```
36
+
37
+ Adjust the speed of an animation.
38
+
39
+ ```scss
40
+ .element.fadeIn {
41
+ @include animate($speed: 2s);
42
+ }
43
+ ```
44
+
45
+ Or just use the css classes.
46
+
47
+ ```haml
48
+ .animated.fadeIn
49
+ Fade in!
50
+ ```
51
+
52
+ ## Contributing
53
+
54
+ 1. Fork it
55
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
56
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
57
+ 4. Push to the branch (`git push origin my-new-feature`)
58
+ 5. Create new Pull Request
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ desc 'Update to the latest version of animate.css'
4
+ task :update do
5
+ system 'git submodule update'
6
+ system 'cp animate.css/source/*.css vendor/assets/stylesheets/animate/'
7
+ end
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'animate/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "animate-scss"
8
+ spec.version = Animate::VERSION
9
+ spec.authors = ["Eric J. Holmes"]
10
+ spec.email = ["eric@ejholmes.net"]
11
+ spec.description = %q{Animate.css for the Rails asset pipeline}
12
+ spec.summary = %q{Animate.css for the Rails asset pipeline}
13
+ spec.homepage = "https://github.com/ejholmes/animate.scss"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'sass'
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "rake"
25
+ end
@@ -0,0 +1,2 @@
1
+ require 'animate/version'
2
+ require 'animate/engine' if defined?(::Rails)
@@ -0,0 +1,4 @@
1
+ module Animate
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module Animate
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,24 @@
1
+ @mixin animate($animation: none, $speed: 1s) {
2
+ @if $animation != none {
3
+ -webkit-animation-name: $animation;
4
+ -moz-animation-name: $animation;
5
+ -o-animation-name: $animation;
6
+ animation-name: $animation;
7
+ }
8
+ -webkit-animation-duration: $speed;
9
+ -moz-animation-duration: $speed;
10
+ -o-animation-duration: $speed;
11
+ animation-duration: $speed;
12
+ -webkit-animation-fill-mode: both;
13
+ -moz-animation-fill-mode: both;
14
+ -o-animation-fill-mode: both;
15
+ animation-fill-mode: both;
16
+ }
17
+
18
+ body { /* Addresses a small issue in webkit: http://bit.ly/NEdoDq */
19
+ -webkit-backface-visibility: hidden;
20
+ }
21
+
22
+ .animated {
23
+ @include animate;
24
+ }
@@ -0,0 +1,29 @@
1
+ @-webkit-keyframes bounce {
2
+ 0%, 20%, 50%, 80%, 100% {-webkit-transform: translateY(0);}
3
+ 40% {-webkit-transform: translateY(-30px);}
4
+ 60% {-webkit-transform: translateY(-15px);}
5
+ }
6
+
7
+ @-moz-keyframes bounce {
8
+ 0%, 20%, 50%, 80%, 100% {-moz-transform: translateY(0);}
9
+ 40% {-moz-transform: translateY(-30px);}
10
+ 60% {-moz-transform: translateY(-15px);}
11
+ }
12
+
13
+ @-o-keyframes bounce {
14
+ 0%, 20%, 50%, 80%, 100% {-o-transform: translateY(0);}
15
+ 40% {-o-transform: translateY(-30px);}
16
+ 60% {-o-transform: translateY(-15px);}
17
+ }
18
+ @keyframes bounce {
19
+ 0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
20
+ 40% {transform: translateY(-30px);}
21
+ 60% {transform: translateY(-15px);}
22
+ }
23
+
24
+ .bounce {
25
+ -webkit-animation-name: bounce;
26
+ -moz-animation-name: bounce;
27
+ -o-animation-name: bounce;
28
+ animation-name: bounce;
29
+ }
@@ -0,0 +1,86 @@
1
+ @-webkit-keyframes bounceIn {
2
+ 0% {
3
+ opacity: 0;
4
+ -webkit-transform: scale(.3);
5
+ }
6
+
7
+ 50% {
8
+ opacity: 1;
9
+ -webkit-transform: scale(1.05);
10
+ }
11
+
12
+ 70% {
13
+ -webkit-transform: scale(.9);
14
+ }
15
+
16
+ 100% {
17
+ -webkit-transform: scale(1);
18
+ }
19
+ }
20
+
21
+ @-moz-keyframes bounceIn {
22
+ 0% {
23
+ opacity: 0;
24
+ -moz-transform: scale(.3);
25
+ }
26
+
27
+ 50% {
28
+ opacity: 1;
29
+ -moz-transform: scale(1.05);
30
+ }
31
+
32
+ 70% {
33
+ -moz-transform: scale(.9);
34
+ }
35
+
36
+ 100% {
37
+ -moz-transform: scale(1);
38
+ }
39
+ }
40
+
41
+ @-o-keyframes bounceIn {
42
+ 0% {
43
+ opacity: 0;
44
+ -o-transform: scale(.3);
45
+ }
46
+
47
+ 50% {
48
+ opacity: 1;
49
+ -o-transform: scale(1.05);
50
+ }
51
+
52
+ 70% {
53
+ -o-transform: scale(.9);
54
+ }
55
+
56
+ 100% {
57
+ -o-transform: scale(1);
58
+ }
59
+ }
60
+
61
+ @keyframes bounceIn {
62
+ 0% {
63
+ opacity: 0;
64
+ transform: scale(.3);
65
+ }
66
+
67
+ 50% {
68
+ opacity: 1;
69
+ transform: scale(1.05);
70
+ }
71
+
72
+ 70% {
73
+ transform: scale(.9);
74
+ }
75
+
76
+ 100% {
77
+ transform: scale(1);
78
+ }
79
+ }
80
+
81
+ .bounceIn {
82
+ -webkit-animation-name: bounceIn;
83
+ -moz-animation-name: bounceIn;
84
+ -o-animation-name: bounceIn;
85
+ animation-name: bounceIn;
86
+ }
@@ -0,0 +1,86 @@
1
+ @-webkit-keyframes bounceInDown {
2
+ 0% {
3
+ opacity: 0;
4
+ -webkit-transform: translateY(-2000px);
5
+ }
6
+
7
+ 60% {
8
+ opacity: 1;
9
+ -webkit-transform: translateY(30px);
10
+ }
11
+
12
+ 80% {
13
+ -webkit-transform: translateY(-10px);
14
+ }
15
+
16
+ 100% {
17
+ -webkit-transform: translateY(0);
18
+ }
19
+ }
20
+
21
+ @-moz-keyframes bounceInDown {
22
+ 0% {
23
+ opacity: 0;
24
+ -moz-transform: translateY(-2000px);
25
+ }
26
+
27
+ 60% {
28
+ opacity: 1;
29
+ -moz-transform: translateY(30px);
30
+ }
31
+
32
+ 80% {
33
+ -moz-transform: translateY(-10px);
34
+ }
35
+
36
+ 100% {
37
+ -moz-transform: translateY(0);
38
+ }
39
+ }
40
+
41
+ @-o-keyframes bounceInDown {
42
+ 0% {
43
+ opacity: 0;
44
+ -o-transform: translateY(-2000px);
45
+ }
46
+
47
+ 60% {
48
+ opacity: 1;
49
+ -o-transform: translateY(30px);
50
+ }
51
+
52
+ 80% {
53
+ -o-transform: translateY(-10px);
54
+ }
55
+
56
+ 100% {
57
+ -o-transform: translateY(0);
58
+ }
59
+ }
60
+
61
+ @keyframes bounceInDown {
62
+ 0% {
63
+ opacity: 0;
64
+ transform: translateY(-2000px);
65
+ }
66
+
67
+ 60% {
68
+ opacity: 1;
69
+ transform: translateY(30px);
70
+ }
71
+
72
+ 80% {
73
+ transform: translateY(-10px);
74
+ }
75
+
76
+ 100% {
77
+ transform: translateY(0);
78
+ }
79
+ }
80
+
81
+ .bounceInDown {
82
+ -webkit-animation-name: bounceInDown;
83
+ -moz-animation-name: bounceInDown;
84
+ -o-animation-name: bounceInDown;
85
+ animation-name: bounceInDown;
86
+ }
@@ -0,0 +1,86 @@
1
+ @-webkit-keyframes bounceInLeft {
2
+ 0% {
3
+ opacity: 0;
4
+ -webkit-transform: translateX(-2000px);
5
+ }
6
+
7
+ 60% {
8
+ opacity: 1;
9
+ -webkit-transform: translateX(30px);
10
+ }
11
+
12
+ 80% {
13
+ -webkit-transform: translateX(-10px);
14
+ }
15
+
16
+ 100% {
17
+ -webkit-transform: translateX(0);
18
+ }
19
+ }
20
+
21
+ @-moz-keyframes bounceInLeft {
22
+ 0% {
23
+ opacity: 0;
24
+ -moz-transform: translateX(-2000px);
25
+ }
26
+
27
+ 60% {
28
+ opacity: 1;
29
+ -moz-transform: translateX(30px);
30
+ }
31
+
32
+ 80% {
33
+ -moz-transform: translateX(-10px);
34
+ }
35
+
36
+ 100% {
37
+ -moz-transform: translateX(0);
38
+ }
39
+ }
40
+
41
+ @-o-keyframes bounceInLeft {
42
+ 0% {
43
+ opacity: 0;
44
+ -o-transform: translateX(-2000px);
45
+ }
46
+
47
+ 60% {
48
+ opacity: 1;
49
+ -o-transform: translateX(30px);
50
+ }
51
+
52
+ 80% {
53
+ -o-transform: translateX(-10px);
54
+ }
55
+
56
+ 100% {
57
+ -o-transform: translateX(0);
58
+ }
59
+ }
60
+
61
+ @keyframes bounceInLeft {
62
+ 0% {
63
+ opacity: 0;
64
+ transform: translateX(-2000px);
65
+ }
66
+
67
+ 60% {
68
+ opacity: 1;
69
+ transform: translateX(30px);
70
+ }
71
+
72
+ 80% {
73
+ transform: translateX(-10px);
74
+ }
75
+
76
+ 100% {
77
+ transform: translateX(0);
78
+ }
79
+ }
80
+
81
+ .bounceInLeft {
82
+ -webkit-animation-name: bounceInLeft;
83
+ -moz-animation-name: bounceInLeft;
84
+ -o-animation-name: bounceInLeft;
85
+ animation-name: bounceInLeft;
86
+ }