Open ghost opened 7 years ago
You have to call the initialization function with the right selector (e.g. not $('span').counterUp()
but $('.counter').counterUp()
)
Also, you should use my fork in which I merged a bunch of PRs and updated for the latest waypoint version - it's already on bower and NPM.
When using the plug in, all other uses of the span tag break. For example I had a bit of code that was simply...
<span class="author">Someones Name</span>
This then when the page renders just displays "NaN".