Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

velocity

> 编程语言
Open source

Accelerated JavaScript animation.

17.2K stars0 likes1 views
WebsiteGitHub

About

Accelerated JavaScript animation.

Velocity beta

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):

xml
<script src="//cdn.jsdelivr.net/npm/[email protected]/velocity.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/velocity/2.0.6/velocity.min.js"></script>

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

xml
<script src="//cdn.jsdelivr.net/npm/[email protected]/velocity.ui.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/velocity/2.0.6/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

  • Motion design: smashingmagazine.com/2014/06/18/faster-ui-animations-with-velocity-js
  • Animating without jQuery: smashingmagazine.com/2014/09/04/animating-without-jquery
  • Performance comparisons: davidwalsh.name/css-js-animation
  • Workflow: css-tricks.com/improving-ui-animation-workflow-velocity-js

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

sponsors Velocity's development. provides browser testing services for Velocity.

Issues· 40 open

View all issuesOpen on GitHub
  • #927

    Velocity v3 and the future

    IMPORTANTDocumentationUpdated Nov 25, 2024
  • #933

    The must-see 3D demo youtube video is private?

    Updated Nov 1, 2021
  • #932

    Force velocity to attach itself to the window object even if jQuery is installed

    Updated Sep 20, 2021
  • #931

    How to easing like specialEasing of jQuery animate?

    Updated Apr 3, 2021
  • #930

    Is there a way to allow transition animation?

    Updated Apr 1, 2021
  • #887

    Slideindown animations not working correctly in V2

    BugUpdated Nov 14, 2020
  • #902

    VelocityJS does not work within the context of Firefox extensions

    Updated Oct 30, 2020
  • #921

    Chaining produces error "e.replace is not a function."

    Updated Oct 30, 2020
  • #880

    window.scrollTop

    Updated Oct 12, 2020
  • #923

    VelocityJS: Missing pattern: padding

    1 - Would Be NiceUpdated Aug 18, 2020

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言