I started using Webpack and I installed VelocityJS (speed-animate) from NPM.
I import it like this
import Velocity from 'velocity-animate';
but I really don't know how to use it.
For example ... How do I write this?
$('.secondary-content').velocity({translateX: '0%'});
I tried this, but it did not work.
Velocity.$('.secondary-content').velocity({translateX: '0%'})
source
share