MCPcopy
hub / github.com/julianshapiro/velocity

github.com/julianshapiro/velocity @v2.0.6 sqlite

repository ↗ · DeepWiki ↗ · release v2.0.6 ↗
853 symbols 2,726 edges 221 files 213 documented · 25%
README

# Velocity beta

npm npm (tag) cdnjs version npm downloads jsdelivr downloads

NPM: npm install velocity-animate@beta

Docs

https://github.com/julianshapiro/velocity/wiki

IMPORTANT: The velocityjs.org documentation refers to V1, not V2 beta - use the wiki for latest documentation!

News

WhatsApp, Tumblr, Windows, Samsung, Uber, and thousands of other companies rely on Velocity. Visit Libscore.com to see which sites use Velocity on their homepage.

React Plugin

Announcement: https://fabric.io/blog/introducing-the-velocityreact-library

Repo: https://github.com/twitter-fabric/velocity-react

NPM: https://www.npmjs.com/package/velocity-react

Quickstart

Velocity (CDN, choose one of them):

<script src="https://github.com/julianshapiro/velocity/raw/v2.0.6/cdn.jsdelivr.net/npm/velocity-animate@2.0/velocity.min.js"></script>
<script src="https://github.com/julianshapiro/velocity/raw/v2.0.6/cdnjs.cloudflare.com/ajax/libs/velocity/2.0.3/velocity.min.js"></script>

Velocity UI pack (CDN, choose one of them):

<script src="https://github.com/julianshapiro/velocity/raw/v2.0.6/cdn.jsdelivr.net/npm/velocity-animate@2.0/velocity.ui.min.js"></script>
<script src="https://github.com/julianshapiro/velocity/raw/v2.0.6/cdnjs.cloudflare.com/ajax/libs/velocity/2.0.3/velocity.ui.min.js"></script>

Please note that JSDelivr can automatically supply the latest release, while CloudFlare needs to ask for a specific version.

Package managers:

npm: npm install velocity-animate@beta

Automagic chaining:

If using the .velocity(...) chained function in libraries such as jQuery or Zepto you need to ensure that Velocity is loaded after them. If you wish to add it to anything loaded afterwards then look at the Velocity.patch() method.

Questions or Problems?

Ask on StackOverflow (make sure you add the [velocity.js] and the [javascript] or [typescript] tags).

Updates

  • 2.0: Typescript update and complete refactoring.
  • 1.5: Bugfixes, IE9 compatibility fixes.
  • 1.4: Pause / Resume (per element or global).

Forcefed string animation (just have matching number spaces) including unit conversions and colour names (ie background:["rgba(red,0.1)", "blue"]). High resolution timers (animations should be slightly smoother).

Various fixes including ticker (loading Velocity in a background window) and color handling. - 1.3: Code cleanup - no breaking changes known. - 1.2: Custom tweens. Custom easings. "Finish" command. - 1.0: File name changed to velocity.js. Read VelocityJS.org/#dependencies. - 0.1: stop now stops animations immediately (instead of only clearing the remainder of the animation queue). No other backwards-incompatible changes were made.

Learn

Comparisons

  • CSS transitions are meant for simple interface flourishes.
  • jQuery's $.animate() is slow and poorly-equipped for motion design.
  • Velocity is a fast, feature-rich standalone alternative to jQuery's $.animate().

License

MIT License. © Julian Shapiro (http://twitter.com/julian).

Sponsors

Kiss My Button sponsors Velocity's development.

BrowserStack provides browser testing services for Velocity.

Extension points exported contracts — how you extend this code

AnimationCall (Interface)
(no doc)
velocity.d.ts
QUnit (Interface)
(no doc)
test/src/utilities.ts
IEDocument (Interface)
(no doc)
src/velocity.ts
springState (Interface)
(no doc)
src/Velocity/easing/spring_rk4.ts
ElementData (Interface)
(no doc)
velocity.d.ts
Assert (Interface)
(no doc)
test/src/utilities.ts
springDelta (Interface)
(no doc)
src/Velocity/easing/spring_rk4.ts
Sequence (Interface)
(no doc)
velocity.d.ts

Core symbols most depended-on inside this repo

done
called by 157
test/qunit-2.5.0.js
getTarget
called by 116
test/test.js
getTarget
called by 116
test/src/utilities.ts
Velocity
called by 77
src/velocityFn.ts
asyncTests
called by 66
test/test.js
asyncTests
called by 66
test/src/utilities.ts
registerEasing
called by 43
velocity.js
registerEasing
called by 43
velocity.es5.js

Shape

Function 817
Interface 25
Class 5
Method 5
Enum 1

Languages

TypeScript100%

Modules by API surface

velocity.js132 symbols
velocity.es5.js132 symbols
test/qunit-2.5.0.js115 symbols
velocity.min.js89 symbols
test/jquery-3.2.1.min.js86 symbols
test/zepto-1.2.0.min.js42 symbols
velocity.d.ts20 symbols
src/Velocity/defaults.ts19 symbols
src/Velocity/options.ts16 symbols
test/test.js13 symbols
src/Velocity/easing/bezier.ts13 symbols
test/src/utilities.ts12 symbols

Used by 3 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@types/qunit2.5.2 · 1×
auto-changelog1.8.0 · 1×
babel-core6.26.3 · 1×
babel-plugin-external-helpers6.22.0 · 1×
babel-polyfill6.26.0 · 1×
babel-preset-env1.7.0 · 1×
markdown0.5.0 · 1×
octonode0.9.3 · 1×
qunit2.6.1 · 1×
qunit-assert-close2.1.2 · 1×
rollup0.63.5 · 1×
rollup-plugin-babel3.0.7 · 1×

For agents

$ claude mcp add velocity \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact