granze / flip-clock Goto Github PK
View Code? Open in Web Editor NEWA flip clock, timer and countdown made with Polymer
A flip clock, timer and countdown made with Polymer
It looks really good but it would be nice if you add some flip css transition or similar.
Thanks
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'.
Go to http://yaume.16mb.com/flip-clock-master/ to view.
Blank screen
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:
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.