creative_rails 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +26 -0
- data/README.md +80 -0
- data/Rakefile +34 -0
- data/VERSIONS.md +9 -0
- data/app/assets/javascripts/creative_rails.js +5 -0
- data/app/assets/stylesheets/creative_rails.scss +6 -0
- data/lib/creative_rails.rb +7 -0
- data/lib/creative_rails/engine.rb +13 -0
- data/lib/creative_rails/version.rb +3 -0
- data/lib/tasks/creative_rails_tasks.rake +4 -0
- data/vendor/assets/images/header.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/1.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/2.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/3.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/4.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/5.jpg +0 -0
- data/vendor/assets/images/portfolio/fullsize/6.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/1.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/2.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/3.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/4.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/5.jpg +0 -0
- data/vendor/assets/images/portfolio/thumbnails/6.jpg +0 -0
- data/vendor/assets/javascripts/creative.js +64 -0
- data/vendor/assets/javascripts/jquery.easing.js +205 -0
- data/vendor/assets/javascripts/magnific-popup.js +1863 -0
- data/vendor/assets/javascripts/scrollreveal.js +947 -0
- data/vendor/assets/stylesheets/creative.scss.erb +416 -0
- data/vendor/assets/stylesheets/magnific-popup.scss +351 -0
- metadata +229 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6e75acfacca3c2ea1cb4af1393f378329de41f81
|
4
|
+
data.tar.gz: 9e5d0db62a1806fbcc10d7c7ad3601495a168871
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 225bbb34d03b009120b6f1d4d0e6c9b048a27c2c94e13532dddf9958b2f25ca30263c5a128087e082b9d57ac5fc64893030f4fb0ef683efa6151a7786012e50c
|
7
|
+
data.tar.gz: de0602a1bebd355167e06c7eeab78bbdd7949ff88f9560ebcc7077efdba3bcd114a348ab91520bfddc4dfb82d749c518c70ca37dd591231f53b4ab3f7efe5ce2
|
data/MIT-LICENSE
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Creative Theme
|
2
|
+
--------------
|
3
|
+
Copyright (c) 2013-2016 Blackrock Digital LLC.
|
4
|
+
|
5
|
+
Creative Adapted for Rails
|
6
|
+
--------------------------
|
7
|
+
Creative Rails Copyright (c) 2016 Michael Price
|
8
|
+
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
10
|
+
a copy of this software and associated documentation files (the
|
11
|
+
"Software"), to deal in the Software without restriction, including
|
12
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
13
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
14
|
+
permit persons to whom the Software is furnished to do so, subject to
|
15
|
+
the following conditions:
|
16
|
+
|
17
|
+
The above copyright notice and this permission notice shall be
|
18
|
+
included in all copies or substantial portions of the Software.
|
19
|
+
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
23
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
24
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
25
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
26
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,80 @@
|
|
1
|
+
# Creative Rails
|
2
|
+
Start Bootstrap Creative theme adapted for Ruby on Rails.
|
3
|
+
|
4
|
+
## Dependencies
|
5
|
+
|
6
|
+
This is has been tested on the following:
|
7
|
+
|
8
|
+
* Ruby 2.3.3
|
9
|
+
* Rails 5.0.1
|
10
|
+
|
11
|
+
Other dependencies:
|
12
|
+
|
13
|
+
* [jquery-rails](https://github.com/rails/jquery-rails) - Packaged with Rails.
|
14
|
+
* [Bootstrap Sass](https://github.com/twbs/bootstrap-sass)
|
15
|
+
* [Font-Awesome Rails](https://github.com/bokmann/font-awesome-rails)
|
16
|
+
|
17
|
+
## Usage
|
18
|
+
How to use my plugin.
|
19
|
+
|
20
|
+
## Installation
|
21
|
+
Add this line to your application's Gemfile:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# PrettyDocs Rails
|
25
|
+
gem 'creative_rails', '~> 1.0', '>= 1.0.1'
|
26
|
+
```
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
How to use this plugin.
|
30
|
+
|
31
|
+
### Sass
|
32
|
+
|
33
|
+
Change your `application.css` to `application.scss`.
|
34
|
+
|
35
|
+
```console
|
36
|
+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
|
37
|
+
```
|
38
|
+
|
39
|
+
Then, remove all the `*= require_self` and `*= require_tree .` statements from the sass file. Instead, use `@import` to import Sass files.
|
40
|
+
|
41
|
+
Do not use `*= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables.
|
42
|
+
|
43
|
+
Using [SCSS](http://sass-lang.com/documentation/file.SASS_REFERENCE.html), add this to your
|
44
|
+
`application.scss` file:
|
45
|
+
|
46
|
+
```scss
|
47
|
+
@import "creative_rails";
|
48
|
+
```
|
49
|
+
|
50
|
+
### JavaScript
|
51
|
+
|
52
|
+
Add the following line to your `application.js` file:
|
53
|
+
|
54
|
+
```js
|
55
|
+
//= require creative_rails
|
56
|
+
```
|
57
|
+
|
58
|
+
## Demo
|
59
|
+
|
60
|
+
A working demo of the application is located in `test/dummy`. Once you have installed all gems, run the following.
|
61
|
+
|
62
|
+
```bash
|
63
|
+
$ cd test/dummy
|
64
|
+
$ rake db:create
|
65
|
+
$ rake db:migrate
|
66
|
+
$ rails c
|
67
|
+
```
|
68
|
+
|
69
|
+
You can download and view Creative [here](http://startbootstrap.com/template-overviews/creative/)
|
70
|
+
|
71
|
+
## Contributing
|
72
|
+
* [Michael Price](http://twitter.com/michaeljprice)
|
73
|
+
|
74
|
+
## License
|
75
|
+
[Creative](http://startbootstrap.com/template-overviews/creative/) is a one page creative theme for [Bootstrap](http://getbootstrap.com/) created by [Start Bootstrap](http://startbootstrap.com/).
|
76
|
+
|
77
|
+
Creative Rails was adapted by [Michael Price](http://twitter.com/michaeljprice) for
|
78
|
+
Ruby on Rails.
|
79
|
+
|
80
|
+
The original theme and this gem are available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'CreativeRails'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.md')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
require 'bundler/gem_tasks'
|
23
|
+
|
24
|
+
require 'rake/testtask'
|
25
|
+
|
26
|
+
Rake::TestTask.new(:test) do |t|
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'test'
|
29
|
+
t.pattern = 'test/**/*_test.rb'
|
30
|
+
t.verbose = false
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
task default: :test
|
data/VERSIONS.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Bundled Versions
|
2
|
+
|
3
|
+
| Gem | Creative | Font Awesome Rails | Bootstrap-Sass |
|
4
|
+
|--------|----------|--------------------|------------------|
|
5
|
+
| 0.1.0 | 3.3.7+1 | ~> 4.7, >= 4.7.0.1 | ~> 3.3, >= 3.3.7 |
|
6
|
+
|
7
|
+
| Gem | Magnific Popup | ScrollReveal | jQuery Easing |
|
8
|
+
|--------|----------------|--------------|---------------|
|
9
|
+
| 0.1.0 | 1.1.0 | 3.1.4 | 1.3 |
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module CreativeRails
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
initializer 'creative_rails.assets.precompile' do |app|
|
4
|
+
|
5
|
+
%w(stylesheets javascripts fonts images).each do |s|
|
6
|
+
app.config.assets.paths << root.join('app', 'assets', s).to_s
|
7
|
+
app.config.assets.paths << root.join('vendor', 'assets', s).to_s
|
8
|
+
end
|
9
|
+
|
10
|
+
app.config.assets.precompile += %w( portfolio/**/*.jpg)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,64 @@
|
|
1
|
+
$(function() {
|
2
|
+
"use strict"; // Start of use strict
|
3
|
+
|
4
|
+
// jQuery for page scrolling feature - requires jQuery Easing plugin
|
5
|
+
$('a.page-scroll').bind('click', function(event) {
|
6
|
+
var $anchor = $(this);
|
7
|
+
$('html, body').stop().animate({
|
8
|
+
scrollTop: ($($anchor.attr('href')).offset().top - 50)
|
9
|
+
}, 1250, 'easeInOutExpo');
|
10
|
+
event.preventDefault();
|
11
|
+
});
|
12
|
+
|
13
|
+
// Highlight the top nav as scrolling occurs
|
14
|
+
$('body').scrollspy({
|
15
|
+
target: '.navbar-fixed-top',
|
16
|
+
offset: 51
|
17
|
+
});
|
18
|
+
|
19
|
+
// Closes the Responsive Menu on Menu Item Click
|
20
|
+
$('.navbar-collapse ul li a').click(function() {
|
21
|
+
$('.navbar-toggle:visible').click();
|
22
|
+
});
|
23
|
+
|
24
|
+
// Offset for Main Navigation
|
25
|
+
$('#mainNav').affix({
|
26
|
+
offset: {
|
27
|
+
top: 100
|
28
|
+
}
|
29
|
+
})
|
30
|
+
|
31
|
+
// Initialize and Configure Scroll Reveal Animation
|
32
|
+
window.sr = ScrollReveal();
|
33
|
+
sr.reveal('.sr-icons', {
|
34
|
+
duration: 600,
|
35
|
+
scale: 0.3,
|
36
|
+
distance: '0px'
|
37
|
+
}, 200);
|
38
|
+
sr.reveal('.sr-button', {
|
39
|
+
duration: 1000,
|
40
|
+
delay: 200
|
41
|
+
});
|
42
|
+
sr.reveal('.sr-contact', {
|
43
|
+
duration: 600,
|
44
|
+
scale: 0.3,
|
45
|
+
distance: '0px'
|
46
|
+
}, 300);
|
47
|
+
|
48
|
+
// Initialize and Configure Magnific Popup Lightbox Plugin
|
49
|
+
$('.popup-gallery').magnificPopup({
|
50
|
+
delegate: 'a',
|
51
|
+
type: 'image',
|
52
|
+
tLoading: 'Loading image #%curr%...',
|
53
|
+
mainClass: 'mfp-img-mobile',
|
54
|
+
gallery: {
|
55
|
+
enabled: true,
|
56
|
+
navigateByImgClick: true,
|
57
|
+
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
58
|
+
},
|
59
|
+
image: {
|
60
|
+
tError: '<a href="%url%">The image #%curr%</a> could not be loaded.'
|
61
|
+
}
|
62
|
+
});
|
63
|
+
|
64
|
+
}); // End of use strict
|
@@ -0,0 +1,205 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3
|
+
*
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5
|
+
* to offer multiple easing options
|
6
|
+
*
|
7
|
+
* TERMS OF USE - jQuery Easing
|
8
|
+
*
|
9
|
+
* Open source under the BSD License.
|
10
|
+
*
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
12
|
+
* All rights reserved.
|
13
|
+
*
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
15
|
+
* are permitted provided that the following conditions are met:
|
16
|
+
*
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18
|
+
* conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21
|
+
* provided with the distribution.
|
22
|
+
*
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
25
|
+
*
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39
|
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40
|
+
|
41
|
+
jQuery.extend( jQuery.easing,
|
42
|
+
{
|
43
|
+
def: 'easeOutQuad',
|
44
|
+
swing: function (x, t, b, c, d) {
|
45
|
+
//alert(jQuery.easing.default);
|
46
|
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47
|
+
},
|
48
|
+
easeInQuad: function (x, t, b, c, d) {
|
49
|
+
return c*(t/=d)*t + b;
|
50
|
+
},
|
51
|
+
easeOutQuad: function (x, t, b, c, d) {
|
52
|
+
return -c *(t/=d)*(t-2) + b;
|
53
|
+
},
|
54
|
+
easeInOutQuad: function (x, t, b, c, d) {
|
55
|
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
56
|
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
57
|
+
},
|
58
|
+
easeInCubic: function (x, t, b, c, d) {
|
59
|
+
return c*(t/=d)*t*t + b;
|
60
|
+
},
|
61
|
+
easeOutCubic: function (x, t, b, c, d) {
|
62
|
+
return c*((t=t/d-1)*t*t + 1) + b;
|
63
|
+
},
|
64
|
+
easeInOutCubic: function (x, t, b, c, d) {
|
65
|
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
66
|
+
return c/2*((t-=2)*t*t + 2) + b;
|
67
|
+
},
|
68
|
+
easeInQuart: function (x, t, b, c, d) {
|
69
|
+
return c*(t/=d)*t*t*t + b;
|
70
|
+
},
|
71
|
+
easeOutQuart: function (x, t, b, c, d) {
|
72
|
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
73
|
+
},
|
74
|
+
easeInOutQuart: function (x, t, b, c, d) {
|
75
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
76
|
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
77
|
+
},
|
78
|
+
easeInQuint: function (x, t, b, c, d) {
|
79
|
+
return c*(t/=d)*t*t*t*t + b;
|
80
|
+
},
|
81
|
+
easeOutQuint: function (x, t, b, c, d) {
|
82
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
83
|
+
},
|
84
|
+
easeInOutQuint: function (x, t, b, c, d) {
|
85
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
86
|
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
87
|
+
},
|
88
|
+
easeInSine: function (x, t, b, c, d) {
|
89
|
+
return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
|
90
|
+
},
|
91
|
+
easeOutSine: function (x, t, b, c, d) {
|
92
|
+
return c * Math.sin(t/d * (Math.PI/2)) + b;
|
93
|
+
},
|
94
|
+
easeInOutSine: function (x, t, b, c, d) {
|
95
|
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
96
|
+
},
|
97
|
+
easeInExpo: function (x, t, b, c, d) {
|
98
|
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
|
99
|
+
},
|
100
|
+
easeOutExpo: function (x, t, b, c, d) {
|
101
|
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
102
|
+
},
|
103
|
+
easeInOutExpo: function (x, t, b, c, d) {
|
104
|
+
if (t==0) return b;
|
105
|
+
if (t==d) return b+c;
|
106
|
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
107
|
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108
|
+
},
|
109
|
+
easeInCirc: function (x, t, b, c, d) {
|
110
|
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
111
|
+
},
|
112
|
+
easeOutCirc: function (x, t, b, c, d) {
|
113
|
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
114
|
+
},
|
115
|
+
easeInOutCirc: function (x, t, b, c, d) {
|
116
|
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
117
|
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
118
|
+
},
|
119
|
+
easeInElastic: function (x, t, b, c, d) {
|
120
|
+
var s=1.70158;var p=0;var a=c;
|
121
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
122
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
123
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
124
|
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
125
|
+
},
|
126
|
+
easeOutElastic: function (x, t, b, c, d) {
|
127
|
+
var s=1.70158;var p=0;var a=c;
|
128
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
129
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
130
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
131
|
+
return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
|
132
|
+
},
|
133
|
+
easeInOutElastic: function (x, t, b, c, d) {
|
134
|
+
var s=1.70158;var p=0;var a=c;
|
135
|
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
136
|
+
if (a < Math.abs(c)) { a=c; var s=p/4; }
|
137
|
+
else var s = p/(2*Math.PI) * Math.asin (c/a);
|
138
|
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
|
139
|
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
|
140
|
+
},
|
141
|
+
easeInBack: function (x, t, b, c, d, s) {
|
142
|
+
if (s == undefined) s = 1.70158;
|
143
|
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
144
|
+
},
|
145
|
+
easeOutBack: function (x, t, b, c, d, s) {
|
146
|
+
if (s == undefined) s = 1.70158;
|
147
|
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
148
|
+
},
|
149
|
+
easeInOutBack: function (x, t, b, c, d, s) {
|
150
|
+
if (s == undefined) s = 1.70158;
|
151
|
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
152
|
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
153
|
+
},
|
154
|
+
easeInBounce: function (x, t, b, c, d) {
|
155
|
+
return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
|
156
|
+
},
|
157
|
+
easeOutBounce: function (x, t, b, c, d) {
|
158
|
+
if ((t/=d) < (1/2.75)) {
|
159
|
+
return c*(7.5625*t*t) + b;
|
160
|
+
} else if (t < (2/2.75)) {
|
161
|
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
162
|
+
} else if (t < (2.5/2.75)) {
|
163
|
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
164
|
+
} else {
|
165
|
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
166
|
+
}
|
167
|
+
},
|
168
|
+
easeInOutBounce: function (x, t, b, c, d) {
|
169
|
+
if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
|
170
|
+
return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
|
171
|
+
}
|
172
|
+
});
|
173
|
+
|
174
|
+
/*
|
175
|
+
*
|
176
|
+
* TERMS OF USE - EASING EQUATIONS
|
177
|
+
*
|
178
|
+
* Open source under the BSD License.
|
179
|
+
*
|
180
|
+
* Copyright © 2001 Robert Penner
|
181
|
+
* All rights reserved.
|
182
|
+
*
|
183
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
184
|
+
* are permitted provided that the following conditions are met:
|
185
|
+
*
|
186
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
187
|
+
* conditions and the following disclaimer.
|
188
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
189
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
190
|
+
* provided with the distribution.
|
191
|
+
*
|
192
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
193
|
+
* or promote products derived from this software without specific prior written permission.
|
194
|
+
*
|
195
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
196
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
197
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
198
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
199
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
200
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
201
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
202
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
203
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
204
|
+
*
|
205
|
+
*/
|