• Resolved jamesashcroftGD

    (@jamesashcroftgd)


    Firstly, thanks for a nice and easy to use plugin.

    Just one thing I would like to know if it’s possible. I have an accordion on my page and I would like to have the numbers start to count up on click (and opening) of the respective accordion section. Is this possible and if so how can I achieve this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Roel Magdaleno

    (@rokumetal)

    Hi, thanks to comment my plugin.

    I think it’s possible to achieve this, are you familiar with JavaScript?

    My logic says that you need to listen the accordion click and then execute a CountUp.js function to run the counter, so you need to edit a little bit my JS script.

    So, that gives me an idea that the counter listens to whatever action (right now works with a view action), so when the action executes then trigger the counter.

    I’m not able to do it right now, but I’ll consider doing it or if you do this then you can tell me to make a pull request.

    Sorry for the delay answer. ??

    Thread Starter jamesashcroftGD

    (@jamesashcroftgd)

    Thanks for getting back to me. I did manage to work it out using JS in the way you explained. Happy to post my solution if it helps.

    Plugin Author Roel Magdaleno

    (@rokumetal)

    I’m glad you did it!

    Could you search “wp-countup-js” in GitHub and pull request with your modified code? I don’t know if I’m allowed to publish information here.

    Then I could integrate properly as an option or something. Thanks. ??

    Plugin Author Roel Magdaleno

    (@rokumetal)

    Closed due to inactivity.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Animate on click’ is closed to new replies.