Coder Social home page Coder Social logo

Warning: No active transition timer about tram HOT 5 CLOSED

bkwld avatar bkwld commented on July 22, 2024
Warning: No active transition timer

from tram.

Comments (5)

danro avatar danro commented on July 22, 2024

I'm not sure why you'd get that warning, but I do know that Firefox can be picky in regards to detecting transition changes. Try the following test, which sets width to 10% before the animation:

http://jsbin.com/AXuHiqEH/30/edit

from tram.

prasand avatar prasand commented on July 22, 2024

The test ran fine without any warnings.

In hindsight, it's probable that my issues are specific to jQuery 2,1

I just removed any extra js inclusions and reduced it to jQuery 2.1 and Tram 0.7 ... the warning and "then" problem is there. So I'll chalk it up to a jQuery 2.1 thing. Those matters aside everything's working well with 2.1. ;)

from tram.

danro avatar danro commented on July 22, 2024

Interesting.. can you isolate it and provide a JSBin link? I'd like to fix it if possible.

from tram.

prasand avatar prasand commented on July 22, 2024

Here's a primitive version of code reproducing the error and warning:

http://jsbin.com/penesafi/17

The error was never shown in the console, because the "then" was silently discarded. So I compensated for that using a setTimeout on line: 94. The console does however show the perpetually collecting warnings that occur on every transition. I tested for the warning in Firefox and Chrome, and they exist in both.

Hope this helps.

from tram.

danro avatar danro commented on July 22, 2024

I apologize for the lack of docs to support this, but here is the fix..

In the following code:

// slide out the current article, then reset its position
tram(page_articles[current_article]).start(adjust).then(function(){
  // then reset its position and continue the progress bar
  tram(page_articles[current_article]).set({left:page_width+'px'}).then(function(){
    article.progress(current_article);
  });
});

Once the first then() has fired, the queue is finished and the animation is complete.

Also, set() is instant, and not part of the queue, therefore cannot have a then() directly after. Your nested function should look something like this instead:

// then reset its position and continue the progress bar
tram(page_articles[current_article]).set({left:page_width+'px'});
article.progress(current_article);

from tram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.