├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
├── bower.json
├── package.json
├── test
├── bluebird.js
├── index.html
├── jquery-1.11.1.js
├── jquery-1.4.3.js
├── q.js
├── qunit-1.14.0.css
├── qunit-1.14.0.js
├── when.js
└── zepto.js
├── velocity.js
├── velocity.ui.js
└── velocity.ui.min.js
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | **Contributing**
2 |
3 | - Make sure you're using the latest version of Velocity before reporting a bug.
4 |
5 | - Unless you're reporting an obvious bug that can be immediately recreated by anyone, please **create a demo** with the minimum amount of code necessary to reproduce your bug. You can use this template, which already has Velocity and its UI pack included: http://jsfiddle.net/65xCP/4/.
6 |
7 | - ~~For a variety of reasons, I rarely merge pull requests. There is no need to make one; just explain your issue and I will take care of it. Thank you so much!~~ Having forked the project, we are happy to consider pull requests, however please note that part of the reason the original authors did not accept pull requests was because the source on github is not the original source (https://github.com/julianshapiro/velocity/issues/632) so this is worth bearing in mind if considering making changes.
8 |
9 | - Please skim the FAQ before asking questions: https://github.com/julianshapiro/velocity/issues/47.
10 |
11 | - @ydaniv provides moderation support for Velocity's GitHub issues.
12 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | The MIT License
2 |
3 | Copyright (c) 2014 Julian Shapiro
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ##Velocity 1.2.3
2 |
3 | **Note**
4 | This is the Vector fork of Velocity, created to incoprporate a bugfix from the community since it's useful for the Vector project.
5 |
6 | **Docs**
7 | [VelocityJS.org](http://VelocityJS.org)
8 |
9 | **News**
10 | You can order the Velocity book on [Amazon](http://amazon.com/Web-Animation-using-JavaScript-Develop/dp/0134096665)!
11 |
12 | WhatsApp, Tumblr, Windows, Samsung, Uber, and thousands of other companies rely on Velocity. Visit [Libscore.com](http://libscore.com/#$.Velocity) to see which sites use Velocity on their homepage.
13 |
14 | **React Plugin**
15 | Announcement: https://fabric.io/blog/introducing-the-velocityreact-library
16 | Repo: https://github.com/twitter-fabric/velocity-react
17 | NPM: https://www.npmjs.com/package/velocity-react
18 |
19 | **Quickstart**
20 | Velocity (CDN):
21 | ``
22 | Velocity UI pack (CDN):
23 | ``
24 | Package managers:
25 | `npm install velocity-animate` /
26 | `bower install velocity`
27 |
28 | **Questions or Problems?**
29 | Ask on [StackOverflow](http://stackoverflow.com/tags/velocity.js) (make sure you add the ```velocity.js``` and ```javascript``` tags).
30 |
31 | ###**Updates**
32 |
33 | - **1.2.0**: [Custom tweens](http://VelocityJS.org/#progress). [Custom easings](http://VelocityJS.org/#easing). ["Finish" command](http://VelocityJS.org/#finish). See [commit log](https://github.com/julianshapiro/velocity/commit/2a28e3812c6fe9262244ed3b6d41d12ae9a107c6) for more.
34 | - **1.0.0**: File name changed to `velocity.js`. Read [VelocityJS.org/#dependencies](http://VelocityJS.org/#dependencies).
35 | - **0.1.0**: `stop` now stops animations *immediately* (instead of only clearing the remainder of the animation queue). No other backwards-incompatible changes were made.
36 |
37 | ###**Learn**
38 |
39 | - **Motion design**: [smashingmagazine.com/2014/06/18/faster-ui-animations-with-velocity-js](http://smashingmagazine.com/2014/06/18/faster-ui-animations-with-velocity-js)
40 | - **Animating without jQuery**: [smashingmagazine.com/2014/09/04/animating-without-jquery](http://www.smashingmagazine.com/2014/09/04/animating-without-jquery/)
41 | - **Performance comparisons**: [davidwalsh.name/css-js-animation](http://davidwalsh.name/css-js-animation)
42 | - **Workflow**: [css-tricks.com/improving-ui-animation-workflow-velocity-js](http://css-tricks.com/improving-ui-animation-workflow-velocity-js)
43 |
44 | ###**Comparisons**
45 |
46 | - **CSS transitions** are meant for simple interface flourishes.
47 | - **jQuery's $.animate()** is slow and poorly-equipped for motion design.
48 | - **Velocity** is a fast, feature-rich standalone alternative to jQuery's $.animate().
49 |
50 | ====
51 |
52 | [MIT License](LICENSE.md). © Julian Shapiro (http://twitter.com/shapiro).
53 | [Stripe](https://stripe.com/blog/stripe-open-source-retreat) sponsors Velocity's development. [BrowserStack](http://www.browserstack.com/) provides testing services.
54 |
--------------------------------------------------------------------------------
/bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "velocity",
3 | "version": "1.2.3",
4 | "homepage": "http://velocityjs.org",
5 | "authors": [
6 | { "name" : "Julian Shapiro",
7 | "homepage" : "http://julian.com/"
8 | }
9 | ],
10 | "description": "Accelerated JavaScript animation.",
11 | "main": [ "./velocity.js", "./velocity.ui.js"],
12 | "keywords": [
13 | "animation",
14 | "jquery",
15 | "animate",
16 | "lightweight",
17 | "smooth",
18 | "ui",
19 | "velocity.js",
20 | "velocityjs",
21 | "javascript"
22 | ],
23 | "license": "MIT",
24 | "ignore": [
25 | "*.json",
26 | "!/bower.json",
27 | "LICENSE",
28 | "*.md"
29 | ],
30 | "dependencies": {
31 | "jquery": "*"
32 | },
33 | "repository" :
34 | {
35 | "type" : "git",
36 | "url" : "http://github.com/julianshapiro/velocity.git"
37 | }
38 | }
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "velocity-vector",
3 | "version": "1.2.3",
4 | "description": "Accelerated JavaScript animation.",
5 | "keywords": [
6 | "velocity",
7 | "animation",
8 | "jquery",
9 | "animate",
10 | "ui",
11 | "velocity.js",
12 | "velocityjs",
13 | "javascript"
14 | ],
15 | "homepage": "http://velocityjs.org",
16 | "bugs": {
17 | "url": "http://github.com/julianshapiro/velocity/issues"
18 | },
19 | "license": "MIT",
20 | "authors": [
21 | {
22 | "name": "Julian Shapiro",
23 | "url": "http://julian.com/"
24 | }
25 | ],
26 | "main": "velocity.js",
27 | "repository": "julianshapiro/velocity",
28 | "files": [
29 | "velocity.js",
30 | "velocity.min.js",
31 | "velocity.ui.js",
32 | "velocity.ui.min.js"
33 | ],
34 | "dependencies": {
35 | "jquery": ">= 1.4.3"
36 | },
37 | "devDependencies": {
38 | "grunt": "^0.4.4",
39 | "grunt-contrib-concat": "~0.4.0",
40 | "grunt-contrib-jshint": "~0.6.3",
41 | "grunt-contrib-nodeunit": "~0.2.0",
42 | "grunt-contrib-requirejs": "~0.4.4",
43 | "grunt-contrib-uglify": "~0.2.2"
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/test/q.js:
--------------------------------------------------------------------------------
1 | // vim:ts=4:sts=4:sw=4:
2 | /*!
3 | *
4 | * Copyright 2009-2012 Kris Kowal under the terms of the MIT
5 | * license found at http://github.com/kriskowal/q/raw/master/LICENSE
6 | *
7 | * With parts by Tyler Close
8 | * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found
9 | * at http://www.opensource.org/licenses/mit-license.html
10 | * Forked at ref_send.js version: 2009-05-11
11 | *
12 | * With parts by Mark Miller
13 | * Copyright (C) 2011 Google Inc.
14 | *
15 | * Licensed under the Apache License, Version 2.0 (the "License");
16 | * you may not use this file except in compliance with the License.
17 | * You may obtain a copy of the License at
18 | *
19 | * http://www.apache.org/licenses/LICENSE-2.0
20 | *
21 | * Unless required by applicable law or agreed to in writing, software
22 | * distributed under the License is distributed on an "AS IS" BASIS,
23 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24 | * See the License for the specific language governing permissions and
25 | * limitations under the License.
26 | *
27 | */
28 |
29 | (function (definition) {
30 | // Turn off strict mode for this function so we can assign to global.Q
31 | /* jshint strict: false */
32 |
33 | // This file will function properly as a