Read the statement by Michael Teeuw here.
Newsfeed change Fade-in/Fade-out
-
I what to change the animation Fade-in/Fade-out for newsfeed. but i don’t find the right place in newsfeed source ala query animation slide up or down and so on.
I would like a to have flip as animation. -
In your config file you can add:
animationSpeed: 2.5 * 1000 ->> change the 2.5 to speed it up or slow it down…
-
@cowboysdude sure, but the animationSpeed can’t change the type of animation. now the type fade in and out and this is what i want to change like an news ticker form right to left (marquee)
-
@l0cal sliding animations on a raspberry doesn’t work smoothly, just so you know.
-
@l0cal said in Newsfeed change Fade-in/Fade-out:
what i want to change like an news ticker form right to left (marquee)
I was intrigued by your request. I like learning new things so I went ahead to see if I could accomplish what you were asking. It might seem like a small feat by those more adept at coding but it was a victory for me, however small.
Note: This was done on my dev machine. I have not tested it on a Pi. As others have stated, you will most likely find that the marquee effect does not run very smoothly on a Pi. You might want to disable all module animations (at first) to see if this will run acceptably on a Pi. However, it may not, in any case.
There are some options available to you, as well. You can have the marquee run in various directions by changing
directions='left'
to left, right, up or down. You can also modify the speed of the animation by changingscrollamount='5'
. 1 being the slowest, 20 being sickeningly fast.This is how I did it. I’m sure there are other ways.
Line 164 in the newsfeed.js file should be changed to this:
Click on the picture. When the window opens, click on it again to enlarge.
Also, change the
updateInteval:
in your config to something like this, then adjust accordingly:module: "newsfeed", position: "bottom_bar", config: { updateInterval: 28 * 1000,
I’d like to know how it works for you so please post your results. Here is a short video of how it works for me.
Sorry about the sound. Exhaust fan is running! My bad.
-
@Mykle1 Well quit farting and you won’t need the fan HAHAAHAHA
-
@Mykle1 thank you for this solution. I’ll test it in the next days and let you know if it works for me. thumbsup
-
@Mykle1 said in Newsfeed change Fade-in/Fade-out:
updateInterval: 28 * 1000,
It’s very stuttering on my pi (pi 2). I’ll test some parameters but i don’t finde a good result for me. i think i’ll leave it for now.
Big thanks to @Mykle1 -
@l0cal said in Newsfeed change Fade-in/Fade-out:
It’s very stuttering on my pi (pi 2). I’ll test some parameters but i don’t finde a good result for me. i think i’ll leave it for now.
Big thanks to @Mykle1You’re welcome. We did warn you. The Pi is not designed for heavy graphics. However, you can keep it in mind if you ever experiment with something more capable than the Pi.