MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Newsfeed change Fade-in/Fade-out

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 4 Posters 4.5k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cowboysdudeC Offline
      cowboysdude Module Developer
      last edited by

      In your config file you can add:

      animationSpeed: 2.5 * 1000 ->> change the 2.5 to speed it up or slow it down…

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        l0cal @cowboysdude
        last edited by l0cal

        @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)

        brobergB Mykle1M 2 Replies Last reply Reply Quote 0
        • brobergB Offline
          broberg Project Sponsor @l0cal
          last edited by

          @l0cal sliding animations on a raspberry doesn’t work smoothly, just so you know.

          1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @l0cal
            last edited by Mykle1

            @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 changing scrollamount='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.
            0_1510499211191_Capture.JPG

            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.

            https://youtu.be/I64DLP5ELDM

            Sorry about the sound. Exhaust fan is running! My bad.

            Create a working config
            How to add modules

            cowboysdudeC L 3 Replies Last reply Reply Quote 2
            • cowboysdudeC Offline
              cowboysdude Module Developer @Mykle1
              last edited by

              @Mykle1 Well quit farting and you won’t need the fan HAHAAHAHA

              1 Reply Last reply Reply Quote 0
              • L Offline
                l0cal @Mykle1
                last edited by

                @Mykle1 thank you for this solution. I’ll test it in the next days and let you know if it works for me. thumbsup

                1 Reply Last reply Reply Quote 1
                • L Offline
                  l0cal @Mykle1
                  last edited by

                  @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

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @l0cal
                    last edited by

                    @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 @Mykle1

                    You’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.

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy