-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shortcut for Object.create(null), Fix unit adding for some css styles…
… and move into normalization code. This is the first build with the correct RequireJS namespace - "velocity-animate"!
- Loading branch information
Showing
16 changed files
with
334 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
# Major Changes in Velocity V2 | ||
|
||
* Transforms - Use these directly within CSS, don't try the old shortcuts as they don't exist. | ||
* APIs for extending Velocity - see the various register* commands in the wiki. | ||
* Chaining - Chaining is awesome, use it. Chained commands are designed to operate on the chained animation, not on the elements within it. | ||
* Colors - All web colors are supported internally. | ||
* SVG - All SVG attributes are supported internally, though they must be placed on the correct type of element. | ||
* Delay - You can pass a negative number to start inside the animation rather than just having a delay before it. | ||
* Display - This is a property, no longer an option. | ||
* Loop - This no longer copies the animation call, it calls it multiple times. | ||
* Per-element - Animations are now copied per-element, and not one a one-animation-per-array basis as in other libraries (and old Velocity v1). | ||
* Repeat - This is almost identical to loop, but only runs one way. | ||
* Chaining - Chaining is awesome, use it. Chained commands are designed to operate on the chained animation, not on the elements within it. | ||
* RequireJS - The namespace is now "velocity-animate" for consistency with the NPMjs project name. | ||
* Reverse - Now reverses the last animation at time of adding, not when playing. | ||
* Scroll - It is now a property, though it's preferred to use scrollTop and scrollLeft. (Working, but not happy with internal code - the API will not change again.) | ||
* Speed - You can control the speed of the animation playback. | ||
* Styles - Use `element.velocity("style", "propertyName"[, value])`, the old .Hook has gone. | ||
* Per-element - Animations are now copied per-element, and not one a one-animation-per-array basis as in other libraries (and old Velocity v1). | ||
* SVG - All SVG attributes are supported internally, though they must be placed on the correct type of element. | ||
* Sync - You can now de-sync animations so they start immediately per-element, rather than waiting for all to be ready. | ||
* Speed - You can control the speed of the animation playback. | ||
* Delay - You can pass a negative number to start inside the animation rather than just having a delay before it. | ||
* There are APIs for extending Velocity - see the various register* commands. | ||
* Display - This is a property, no longer an option. | ||
* Transforms - Use these directly within CSS, don't try the old shortcuts as they don't exist. | ||
* Visibility - This is a property, no longer an option. | ||
* Reverse - Now reverses the last animation at time of adding, not when playing. | ||
|
||
# Currently disabled / not updated: | ||
|
||
* UI-Pack | ||
* Scroll (working, but not happy with interface - it's a property if people want to play, alias of scrollTop, there's also scrollLeft) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.