• Resolved feelingarena

    (@feelingarena)


    I use the plugin to add countup animation on my frontage,it works fine at the beginning, but When I click one of my page then go backwards to my frontpage, then the counter starts from minus infinity, though my setting is start from 1.

    I’m not quite a web developer, so maybe I did something wrong?

    Here is the test website address:
    https://www.oasis-design.cn

    Pls help me with it, thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter feelingarena

    (@feelingarena)

    Besides, I find this issue on Safari and iPhone, it seems OK on chrome and several other browsers.

    • This reply was modified 8 years, 5 months ago by feelingarena.
    Thread Starter feelingarena

    (@feelingarena)

    Well,I just fix the problem by adding some code in countUp.js,which is:

    this.count = function(timestamp) {

    if (!self.startTime) self.startTime = timestamp;

    //workaround for safari issue
    if (self.startTime > timestamp){
    self.startTime=timestamp;
    }

    self.timestamp = timestamp;

    thanks anyway for developing the Plugin, it is great!

    Plugin Author Roel Magdaleno

    (@rokumetal)

    Hi there! Sorry, I had no chance to look at your problem. Sorry about it but I’m glad that you could find a solution, though.

    Now is working in all browsers? Even iPhone?

    I’m gonna test the plugin on Safari and iPhone and try to replicate your issue, to see what happen and solve it with your code, can I?

    Thanks for the feedback!

    Thread Starter feelingarena

    (@feelingarena)

    Thank you for your reply! Yes,now it works in all browsers,Even iPhone. And of course you can use the code, I’m glad it helps. This code is written by my friend Hong, you can contact him if there is any question about the issue, his e-mail is [email protected].

    All the best!

    • This reply was modified 8 years, 5 months ago by feelingarena.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Start from minus infinity’ is closed to new replies.