I've been experimenting with Velocity for animations (without jQuery), but I'm running into an issue where I keep getting this error message:
Velocity: First argument ([object HTMLDivElement]) was not a property map, a known action, or a registered redirect. Aborting.
After looking at other examples, it seems like they're doing it the same way I am, and theirs are working fine. Why isn't mine?
When I check the value of rev.elem
, it returns as a HTMLDivElement
Velocity(rev.elem, 'slideUp', {
duration: 225,
queue: false,
easing: 'easeInOutQuad'
});
This person is using it in a similar way and it's working for them: