jessmall Posted February 27, 2022 Share Posted February 27, 2022 I'm testing out some code for a marquee banner. I like the look of the banner and the animation, however, it's not a continuous loop. See attached image. What I would like for it to do it just be continuous with no breaks. What have I missed? Here's my code: code block: <div class="marquee"> <div class="track"> <h3> NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING ·</h3> </div> </div> css block .marquee { position: absolute; display: flex; animation: moveLeft 40s linear infinite; } .track { font-size: 36px; min-width: 100%; text-align: center; padding:20px; line-height: .9em; color: #191c19; font-family: 'casanova'; border-width:1px; background-color: #b1c2f6; border-style:solid; border-radius:inherit; white-space: nowrap; min-width: 100%; text-align: center; } section[id="621b04d4ad51f07b6c2a5f3e"] { overflow-x: hidden !important; overflow-y:hidden; min-height:initial !important;.Index-page-content { padding-top:30px; padding-bottom:30px; } }@keyframes moveLeft { from { transform: translateX(0%) } to { transform: translateX(-100%) } } Link to comment
Beyondspace Posted February 28, 2022 Share Posted February 28, 2022 18 hours ago, jessmall said: I'm testing out some code for a marquee banner. I like the look of the banner and the animation, however, it's not a continuous loop. See attached image. What I would like for it to do it just be continuous with no breaks. What have I missed? Here's my code: code block: <div class="marquee"> <div class="track"> <h3> NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING · NOW BOOKING ·</h3> </div> </div> css block .marquee { position: absolute; display: flex; animation: moveLeft 40s linear infinite; } .track { font-size: 36px; min-width: 100%; text-align: center; padding:20px; line-height: .9em; color: #191c19; font-family: 'casanova'; border-width:1px; background-color: #b1c2f6; border-style:solid; border-radius:inherit; white-space: nowrap; min-width: 100%; text-align: center; } section[id="621b04d4ad51f07b6c2a5f3e"] { overflow-x: hidden !important; overflow-y:hidden; min-height:initial !important;.Index-page-content { padding-top:30px; padding-bottom:30px; } }@keyframes moveLeft { from { transform: translateX(0%) } to { transform: translateX(-100%) } } You can get reference from: Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
jessmall Posted February 28, 2022 Author Share Posted February 28, 2022 Just now, bangank36 said: You can get reference from: Hey thanks, I tried this code, and it works - but isn't a continuous loop. I'm looking for it to have zero breaks or pauses. Link to comment
tuanphan Posted March 3, 2022 Share Posted March 3, 2022 On 3/1/2022 at 1:02 AM, jessmall said: Hey thanks, I tried this code, and it works - but isn't a continuous loop. I'm looking for it to have zero breaks or pauses. Try this guide https://ryandejaegher.com/easy-scrolling-text-in-squarespace/ Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment