Git Product home page Git Product logo

flip-clock's People

Contributors

granze avatar protoss78 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flip-clock's Issues

New feature

It looks really good but it would be nice if you add some flip css transition or similar.

Thanks

Switching tabs 'synchronizes' all clocks on the page

Not really an issue, more or a very minor annoyance but wanted to make sure you know it's there so you can check if it could lead to some other problems along the way :)

Go to the demo page and start time timer and/or countdown but make sure to start it in a way that is not 'synchronized' with the top clock (with this I mean that the seconds aren't ticket at exactly the same time). Now switch to another tab and back, now all clocks are 'synchronized' (ticking at the same time).

If you combine this with #1 (first make a timer faster then switch tabs) you can see the 'sped up' timer jump multiple seconds in one 'tick'.

Add styling options

It would be great if the flip-clock would be stylable from outside. Especially when you want to use it on a web page that has a dark theme.

Useful style options would be:

  • Digit color
  • Card background
  • Font size

Countdown does not autostart

Setting the auto parameter starts the timer, but not the countdown.

A quick fix is to change this

if(this.auto === true) {
  this._createCountdown();
}

to this

if(this.auto === true) {
  this._startCount();
}

but I haven't check if it has any side-effects.

Timer running too fast if you stop & start it a few times quickly

Go to the demo and try clicking on the start and stop buttons a few times in quick succession.

This somehow leads to the timer ticking faster then before, with a few clicks I managed to get it around 3 or 4 times faster. Happens for both the timer and the countdown.

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.