I am using Velocity to do some animations (without jQuery), and I am having an issue where I get the following error:
Velocity: First argument ([object HTMLDivElement]) was not a property map, a known action, or a registered redirect. Aborting.
I have looked at other examples, and they seem to do it the same way I do, and thiers works. Why is mine not working?
When I dump out the value of rev.elem
I get a HTMLDivElement
Velocity(rev.elem, 'slideUp', {
duration: 225,
queue: false,
easing: 'easeInOutQuad'
});
This guy seems to use it the same way and it works for him:
http://jasonweaver.name/blog/velocity-js-vertical-slide-without-jquery
I have got the example of this up and running...
The example is based on Jason Weaver's original example but has been updated to the latest version of Velocity and has the PUG syntactical error fixed.