https://atps-plus.blogspot.com/google-site-verification: google997dd6231ec10261.html Skip to main content

HTML Code Learning

Stack Overflow sign up log in By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. Questions Jobs Tags Users Badges Ask up vote 2 down vote favorite Text Marquee is cutting off html css marquee I have to use a marquee with quite a long string of text. I've worked this code a few different ways but in the end, the text is always cut off after a few words (or the first line). I need the entirety of all the text to continue scrolling. If we could keep it within the CSS, that'd be ideal. Thanks! You can see it here: http://braidsmusic.com/test .scroll-left { height: 100px; overflow: hidden; position: relative; } .scroll-left h1 { position: absolute; width: 150%; height: 100%; margin: 0; line-height: 50px; text-align: center; /* Starting position */ -moz-transform: translateX(100%); -webkit-transform: translateX(100%); transform: translateX(100%); /* Apply animation to this element */ -moz-animation: scroll-left 10s linear infinite; -webkit-animation: scroll-left 10s linear infinite; animation: scroll-left 10s linear infinite; } /* Move it (define the animation) */ @-moz-keyframes scroll-left { 0% { -moz-transform: translateX(100%); } 100% { -moz-transform: translateX(-100%); } } @-webkit-keyframes scroll-left { 0% { -webkit-transform: translateX(100%); } 100% { -webkit-transform: translateX(-100%); } } @keyframes scroll-left { 0% { -moz-transform: translateX(100%); /* Browser bug fix */ -webkit-transform: translateX(100%); /* Browser bug fix */ transform: translateX(100%); } 100% { -moz-transform: translateX(-100%); /* Browser bug fix */ -webkit-transform: translateX(-100%); /* Browser bug fix */ transform: translateX(-100%); } }

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

share improve this question asked May 3 at 5:38 Anjela Freyja 18●4 edited May 3 at 5:46 mplungjan 86k●20●120●180 I created a snippet for you and changed the text colour – mplungjan May 3 at 6:42 add a comment 1 Answer order by up vote 3 down vote accepted scroll-left width automatic fill with text width. So use fit-content; changed start position to 30% body{ overflow-x:hidden; } .scroll-left { height:auto; width:fit-content; } .scroll-left h1 { height:auto; margin: 0; /* Starting position */ -moz-transform: translateX(30%); -webkit-transform: translateX(30%); transform: translateX(30%); /* Apply animation to this element */ -moz-animation: scroll-left 30s linear infinite; -webkit-animation: scroll-left 30s linear infinite; animation: scroll-left 30s linear infinite; } /* Move it (define the animation) */ @-moz-keyframes scroll-left { 0% { -moz-transform: translateX(30%); } 100% { -moz-transform: translateX(-100%); } } @-webkit-keyframes scroll-left { 0% { -webkit-transform: translateX(30%); } 100% { -webkit-transform: translateX(-100%); } } @keyframes scroll-left { 0% { -moz-transform: translateX(30%); /* Browser bug fix */ -webkit-transform: translateX(30%); /* Browser bug fix */ transform: translateX(30%); } 100% { -moz-transform: translateX(-100%); /* Browser bug fix */ -webkit-transform: translateX(-100%); /* Browser bug fix */ transform: translateX(-100%); } }

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

share improve this answer answered May 3 at 6:30 Akash Singh 101●5 edited May 3 at 9:14 mplungjan 86k●20●120●180 1 What did you do? It seems to work well – mplungjan May 3 at 6:38 1 Guys, don't vote down yet. Let him explain. – mplungjan May 3 at 6:43 The text was getting broken, which I used to do inline white-space:nowrap. – Akash Singh May 3 at 8:02 Please update the answer with all you changed. I for example see width:fit-content; – mplungjan May 3 at 8:16 scroll-left width automatic fill with text width...so i use fit-content; – Akash Singh May 3 at 8:39 show 1 more comment Your Answer Body Add picture Log in OR Name Email By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies. meta chat tour help blog privacy policy legal contact us full site Download the Stack Exchange Android app 2018 Stack Exchange, Inc
contact"→ Call Now:+8801798-381298 E-mail:towfiqhossin@yahoo.com visit:www.facebook.com/Aah.towfiq ~Thank-You!! Towfiq"

Comments

Popular posts from this blog

Copyright Desclimar

Notice :  Thanks for being with us. You can comment on your comments and publish your comments by email. Comment, to share all the important information. Inbox contact us. Thank you for staying with us. After getting the next video, turn on Notification ON & Reminder ON to let us know your comments. Our special and requested video is published at 8:30 pm and all other videos at any time. Do not forget to tell us what kind of videos you want to watch. You can connect with us at: Atps Plus, Active Info Plus, Info Share Plus and Data Share Plus,AtpsPlusEducation™  ETC. Details: https://atps-plus.blogspot.com Thank you for staying with us Please leave Notification on the next video, let us know your comments. Our video is published at 8:30 pm Do not forget to tell us what kind of videos you want to watch (do you have any smile?) [May be exceptional] [Us] to [connect]: [Atps Plus], Active Info Plus, Info Share Plus and Data Share Plus detai...

©AtpsPlus YouTube Copyright Desclimar

U Updated :   See: Please do not report any reports on Our video or site. If there is a mistake, I am apologizing to tell us to fix it. You can connect with us at: Atps Plus, Active Info Plus, Info Share Plus and Data Share Plus,AtpsPlusEducation™ ETC. Details: https://atps-plus.blogspot.com Credit By Google Link :- https://www.google.com Thank you for staying with us Please leave Notification on the next video, let us know your comments. Our video is published at 8:30 pm Do not forget to tell us what kind of videos you want to watch (do you have any smile?) [May be exceptional] [Us] to [connect]: [Atps Plus], Active Info Plus, Info Share Plus and Data Share Plus details: https://atps-plus.blogspot.com/ licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/...) Disclaimer- Some content used for educational purposes under fair use. Copyright Disclaimer Under Section 107 of the Copyright Act 1976, the allowance was made for "fair use...