Fade-in/Fade-out with Electron
I’m currently building my own mirror. I’ll start building the frame tomorrow.
I’m also writing a module which will give you current information for public transport departures in Berlin and Brandenburg (using the HAFAS realtime data by VBB).
For the list with the departures I’d like to fade the old list items out and the new items in, so that there is some kind of “rolling” effect.
It should look something like this when the module gets updated:
(time) (list item)
Yeah, after digging the code, I think that is what I was looking for :=)
I didn’t think it was THAT easy ^^'
Thank you very much!
especially have a look at the following lines https://github.com/fewieden/MMM-soccer/blob/046346597ca7b1429b0a1f6e6c55c8f0624373a7/MMM-soccer.js#L169
yes, already got them :) thanks!
Do I have to mark this topic as solved? (And if yes, how?) Or is this done by the admins?
and also take a look at https://github.com/MichMich/MagicMirror/blob/develop/modules/default/weatherforecast/weatherforecast.js#L142 - this is where the MMM-soccer fade functionality was derived from
credits to @MichMich and the MM team :)