• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Rolling Banner

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 4 Posters 8.2k Views 4 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.
  • Z Offline
    zkab
    last edited by Mar 28, 2017, 3:45 PM

    How can I use Hello World to create a rolling text … like a banner

    J 1 Reply Last reply Mar 28, 2017, 3:57 PM Reply Quote 0
    • J Offline
      johnnyboy @zkab
      last edited by johnnyboy Apr 28, 2017, 9:48 PM Mar 28, 2017, 3:57 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • B Offline
        broberg Project Sponsor
        last edited by broberg Mar 28, 2017, 7:18 PM Mar 28, 2017, 7:18 PM

        try this in your custom.css

        
        .helloworld {
          height: 125px;
          width: 600px;
          overflow: hidden;
          position: relative;
        }
        
        .helloworld div {
          display: block;
          width: 100%;
          height: 130px;
        
          position: absolute;
          overflow: hidden;
        
          animation: marquee 10s linear infinite;
        }
        
        
        @keyframes marquee {
          0% { left: 50%; }
          100% { left: -100%; }
        }
        

        Do note, the Pi doesn’t handle css animations that good, it lacks hardware acceleration.

        The css is mostly taken from : https://codepen.io/jamesbarnett/pen/kfmKa

        J 1 Reply Last reply Mar 28, 2017, 7:31 PM Reply Quote 1
        • J Offline
          johnnyboy @broberg
          last edited by johnnyboy Apr 28, 2017, 9:47 PM Mar 28, 2017, 7:31 PM

          This post is deleted!
          B 1 Reply Last reply Mar 28, 2017, 7:34 PM Reply Quote 0
          • B Offline
            broberg Project Sponsor @johnnyboy
            last edited by broberg Mar 28, 2017, 7:35 PM Mar 28, 2017, 7:34 PM

            @johnnyboy I just wanted to state the source, since I basically just copied the css code, (credit where credit is due :D )

            The css I posted above will scroll any text you enter in the config for the helloworld module, no need to alter any code.

            J 1 Reply Last reply Mar 28, 2017, 7:43 PM Reply Quote 1
            • J Offline
              johnnyboy @broberg
              last edited by johnnyboy Apr 28, 2017, 9:46 PM Mar 28, 2017, 7:43 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • Z Offline
                zkab
                last edited by Mar 28, 2017, 8:50 PM

                Thanks for the css code - I will be away for a couple of days but will test it when I am back … I keep you posted

                1 Reply Last reply Reply Quote 0
                • Z Offline
                  zkab
                  last edited by Apr 2, 2017, 12:09 PM

                  I tried the code and it works … but in my case I call ‘helloworld’ twice in ‘config.js’ - one text in ‘upper_third’ and one in ‘bottom bar’.
                  Is there away to make only the text in ‘bottom bar’ to scroll ?

                  S 1 Reply Last reply Apr 2, 2017, 12:16 PM Reply Quote 0
                  • S Offline
                    strawberry 3.141 Project Sponsor Module Developer @zkab
                    last edited by strawberry 3.141 Apr 2, 2017, 12:21 PM Apr 2, 2017, 12:16 PM

                    @zkab you can select all helloworld modules in region bottom with the selector .region.bottom .helloworld

                    Please create a github issue if you need help, so I can keep track

                    1 Reply Last reply Reply Quote 0
                    • Z Offline
                      zkab
                      last edited by Apr 2, 2017, 12:36 PM

                      How do I use .region.bottom .helloworld ?
                      Can’t find any documentation …

                      S 1 Reply Last reply Apr 2, 2017, 12:46 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        2/18
                        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