Dolph92 Posted December 28, 2022 Share Posted December 28, 2022 I've been working on a website for a little while now and decided to publish with password to see what it would look like for the end user (compared to the editor). To my surprise, a code block that is alligned with a text block (in terms of the block arrangement in the editor) are perfectly alligned and the animations run smoothly. However, in the client version, the code block seems to have shifted downwards horizontally a fair bit. Attached is the image I see from the editor. The actual website can be accessed here: https://daisy-pineapple-39th.squarespace.com/ Password: cheese The code used for the animation is as follows: HTML: <body> <div class="card"> <h1> <!-- Scroller Start --> <div class="scroller"> <span> tutor<br/> life-saver<br/> mentor </span> </div> <!-- Scroller End --> </h1> </div> </body> CSS: * { box-sizing: border-box; } h1 { font-weight: light; } a { text-decoration: none; background: linear-gradient(135deg, rgba(43,171,217,1) 0%, rgba(0,130,200,1) 100%); -webkit-background-clip: text; color: transparent; } html, body { background: linear-gradient(135deg, rgba(43,171,217,1) 0%, rgba(0,130,200,1) 100%); font-family: "Montserrat", Arial; } .note { font-size: 0.8em; color: #3232DA; position: relative; margin-top: 4em; } /* Scroller styling */ .scroller { height: 1.2em; line-height: 1.2em; position: relative; overflow: hidden; width: 10em; } .scroller > span { position: absolute; top: 0; animation: slide 4s infinite; font-weight: bold; color: #3232da; } @keyframes slide { 0% { top: 0; } 33% { top: -1.2em; } 66% { top: -2.4em; } } Any help would be greatly appreciated! Link to comment
tuanphan Posted December 30, 2022 Share Posted December 30, 2022 It looks fine to me 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