Trigger counter after page load o button click

2 replies · opened Dec 19, 2017

TthatmattgardnerDec 19, 2017

The counter effect (where a number goes from e.g. 0->2000), I want that to trigger when a user clicks a button and not when they scroll to the section. How can I do that?

TthatmattgardnerDec 20, 2017

Help?

SSemicolon WebSTAFFDec 21, 2017

Hello,

Find the following code in the js/functions.js File:

var $counterEl = $('.counter:not(.counter-instant)');

and replace it with:

var $counterEl = $('.counter:not(.counter-instant):not(.customjs)');

Then, consider using this Template: https://www.dropbox.com/s/ajuzkx0i3v5glrs/custom-counter-trigger.html?dl=1 .

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard