Velocity Scroll Issue with Version 2.0.1

An update to the newest version of Velocity (2.0.1) causes an issue related to scroll. Specifically, the following error message is thrown:

Error: Velocity: First argument (scroll) was not a property map, a known action, or a registered redirect. Aborting.

The following example works fine with Velocity 1.5: https://codepen.io/julianshapiro/pen/kBuEi

Since SO requires code, here is the relevant portion from the CodePen:

$("#element3").velocity("scroll", { 
  container: $("#container"),
  duration: 800,
  delay: 500
});

However, when Velocity 2.0.1 is used instead, it throws the error: https://codepen.io/anon/pen/QQgOPx

Can someone tell me how to fix this?

1 answer