I'm importing with import counterUp from 'counterup2' but I keep getting counterUp is not defined. I'm using codekit, following the example. Anyone having similar issue?
const el = document.querySelector( '.counter__num' )
// Start counting, do this on DOM ready or with Waypoints.
counterUp( el, {
duration: 1000,
delay: 16,
} )
Edit: I was misunderstanding how es6 modules work.
I'm importing with
import counterUp from 'counterup2'
but I keep gettingcounterUp is not defined
. I'm using codekit, following the example. Anyone having similar issue?Edit: I was misunderstanding how es6 modules work.