• 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.

[MMM-NewsFeedTicker] scroll from left to right only?

Scheduled Pinned Locked Moved Custom CSS
41 Posts 3 Posters 8.9k 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.
  • C Offline
    Cr4z33
    last edited by Aug 3, 2020, 6:40 AM

    Can someone please tell me what to edit to have the news scrolling from left to right only (and not also from right to left)?

    @-webkit-keyframes marquee {
      0% { left: 100%; }
      100% { left: -100%; }
    }
    
    @-moz-keyframes marquee {
      0% { left: 100%; }
      100% { left: -100%; }
    }
    
    @-ms-keyframes marquee {
      0% { left: 100%; }
      100% { left: -100%; }
    }
    
    @-o-keyframes marquee {
      0% { left: 100%; }
      100% { left: -100%; }
    }
    
    @keyframes marquee {
      0% { left: 100%; }
      100% { left: -100%; }
    }
    
    .MMM-NewsFeedTicker {
      width: 100%;
      height: 50px;
      line-height: 100%;
      overflow: hidden;
      background: rgb(104, 9, 9); /* background color - change to 'none' if don't want */
    }
    
    .MMM-NewsFeedTicker .tickerbody {
      margin: 0 auto;
      width: 100%;
      padding-top: 5px;
      position: relative;
      white-space: nowrap;
      overflow: visible;
      -webkit-animation: marquee linear infinite;
      -moz-animation: marquee linear infinite;
      -ms-animation: marquee linear infinite;
      -o-animation: marquee linear infinite;
      animation: marquee linear infinite;
    }
    
    .MMM-NewsFeedTicker .headline {
      font-size: 40px;
      font-weight: bold;
    }
    
    .MMM-NewsFeedTicker .image {
      position: absolute;
      display: inline-block;
      vertical-align: middle;
      bottom: 0;
      left: 0;
      height: 50px;
      z-index: 100;
      background: rgb(255, 255, 255); /* white background for image */
    }
    
    S 1 Reply Last reply Aug 3, 2020, 12:25 PM Reply Quote 0
    • S Away
      sdetweil @Cr4z33
      last edited by Aug 3, 2020, 12:25 PM

      @Cr4z33 see
      https://www.quackit.com/css/codes/marquees/

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Aug 3, 2020, 12:39 PM Reply Quote 0
      • C Offline
        Cr4z33 @sdetweil
        last edited by Cr4z33 Aug 3, 2020, 12:39 PM Aug 3, 2020, 12:39 PM

        @sdetweil thanks I already saw that page, but it talks about translateX and there’s no evidence of it in that module’s CSS.

        S 1 Reply Last reply Aug 3, 2020, 12:41 PM Reply Quote 0
        • S Away
          sdetweil @Cr4z33
          last edited by Aug 3, 2020, 12:41 PM

          @Cr4z33 ok, so. try it. maybe the default is right to left if not specified.

          worst case u have the existing file still

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          C 1 Reply Last reply Aug 3, 2020, 3:18 PM Reply Quote 0
          • C Offline
            Cr4z33 @sdetweil
            last edited by Aug 3, 2020, 3:18 PM

            @sdetweil nope I didn’t get what I wanted. :person_shrugging_medium-dark_skin_tone:

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by Aug 3, 2020, 8:15 PM

              @Cr4z33 : see this

              I think it can help

              1 Reply Last reply Reply Quote 0
              • S Away
                sdetweil
                last edited by Aug 4, 2020, 6:49 PM

                i did this, commented out the old in the MMM-NewsFeedTicker.css
                and replaced with this

                /*@-webkit-keyframes marquee {
                  0% { left: 100%; }
                  100% { left: -100%; }
                }
                
                @-moz-keyframes marquee {
                  0% { left: 100%; }
                  100% { left: -100%; }
                }
                
                @-ms-keyframes marquee {
                  0% { left: 100%; }
                  100% { left: -100%; }
                }
                
                @-o-keyframes marquee {
                  0% { left: 100%; }
                  100% { left: -100%; }
                }
                
                @keyframes marquee {
                  0% { left: 100%; }
                  100% { left: -100%; }
                } */
                
                /* new stuff here */
                @keyframes marquee {
                  
                   0% {
                    transform: translate(-100%, 0);
                  }
                
                  50% {
                    transform: translate(-50%, 0);
                  }
                
                  100% {
                    transform: translate(0, 0);
                  } 
                }
                

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                C 1 Reply Last reply Aug 5, 2020, 4:44 PM Reply Quote 0
                • C Offline
                  Cr4z33 @sdetweil
                  last edited by Aug 5, 2020, 4:44 PM

                  @sdetweil thank you gonna try asap! :D

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cr4z33
                    last edited by Aug 5, 2020, 4:58 PM

                    OK this is getting weird now because I applied the above code and it STILL keeps scrolling back and forth! :anguished_face:

                    S 1 Reply Last reply Aug 5, 2020, 4:59 PM Reply Quote 0
                    • S Away
                      sdetweil @Cr4z33
                      last edited by Aug 5, 2020, 4:59 PM

                      @Cr4z33 did u delete the old code?

                      /*@-webkit-keyframes marquee {
                        0% { left: 100%; }
                        100% { left: -100%; }
                      }
                      
                      @-moz-keyframes marquee {
                        0% { left: 100%; }
                        100% { left: -100%; }
                      }
                      
                      @-ms-keyframes marquee {
                        0% { left: 100%; }
                        100% { left: -100%; }
                      }
                      
                      @-o-keyframes marquee {
                        0% { left: 100%; }
                        100% { left: -100%; }
                      }
                      
                      @keyframes marquee {
                        0% { left: 100%; }
                        100% { left: -100%; }
                      } */
                      

                      notice the /* and */

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      1 / 5
                      • First post
                        3/41
                        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