-
AuthorPosts
-
March 5, 2022 at 11:48 pm #1343308
Hi,
i would like to add a scrolling text (“scrolltext scrolltext” yello). Please see screenshot.
How can i do that?
kind regards Jak
March 6, 2022 at 2:58 am #1343320Hey Jak73,
Try this in a code block element
<marquee>This text will scroll from right to left</marquee>
you will want to add some style for the font size and color, etcBest regards,
MikeMarch 6, 2022 at 8:17 am #1343328This reply has been marked as private.March 6, 2022 at 3:31 pm #1343340Hi,
Please see this Marquee Generator as it will help you choose all of these settings including the speed of the scroll, then just place the code it gives you in a code block element.Best regards,
MikeMarch 6, 2022 at 10:49 pm #1343395Hi Mike,
thanks a lot this is really cool!
How can I make it so that there is an infinite loop without the text first disappearing completely from the image before it runs through again?
I would like it so that there is always text in the image, without a break.How can i do that?
BTW i changed from my test server to my main page (please see private content).
kind regards Jak
March 6, 2022 at 11:00 pm #1343396Hi,
Try this example: Infinite Marquee in it’s css change the “body” class to.marquee > .track > .content
and add your font and color there.
If you need a hand just include admin login in the Private Content area.Best regards,
MikeMarch 6, 2022 at 11:18 pm #1343397Hi Mike,
seems i’m doing something wrong…
I added the code, but does not work…Could you please have a look?
kind regards Jak
March 7, 2022 at 12:14 am #1343401Hi,
The code you are seeing needs to be inside a style tag, so try this in your code block element<style> .marquee > .track > .content { margin: 0; padding: 0; color: #fff; font-size: 25px; font-family: 'press-start-2p'; } .marquee { position: relative; width: 100vw; max-width: 100%; height: 200px; overflow-x: hidden; } .track { position: absolute; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; } @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } } </style> <div class="marquee"> <div class="track"> <div class="content"> All of Joakims NFTs are one of a kind (1/1) artworks. Each artwork will be available either on Opensea or Rarible only!</div> </div> </div>
Best regards,
MikeMarch 7, 2022 at 12:39 am #1343403Hi Mike,
this is really cool! Thank you so much!
How can i set the width of it?
How can i add the same, but with the text running from right to left too?
Kind regards jak
- This reply was modified 2 years, 8 months ago by Jak73.
March 7, 2022 at 1:10 am #1343405Hi,
To make it full width try this in your Quick CSS:#top.page-id-600 .avia_codeblock_section.avia_code_block_0 { width: 100vw !important; position: relative !important; left: calc(-50vw + 50%) !important; }
to add another going the other direction add this to a new code block element
<style> .marquee-two > .track-two > .content-two { margin: 0; padding: 0; color: #fff; font-size: 25px; font-family: 'press-start-2p'; } .marquee-two { position: relative; width: 100vw; max-width: 100%; height: 200px; overflow-x: hidden; } .track-two { position: absolute; white-space: nowrap; will-change: transform; animation: marquee-two 32s linear infinite; } @keyframes marquee-two { from { transform: translateX(-50%); } to { transform: translateX(0); } } </style> <div class="marquee-two"> <div class="track-two"> <div class="content-two"> All of Joakims NFTs are one of a kind (1/1) artworks. Each artwork will be available either on Opensea or Rarible only!</div> </div> </div>
and if you want the second code block full width add this Quick CSS for it
#top.page-id-600 .avia_codeblock_section.avia_code_block_1 { width: 100vw !important; position: relative !important; left: calc(-50vw + 50%) !important; }
Best regards,
MikeMarch 7, 2022 at 1:13 am #1343406Hi Mike,
thanks a lot!!!
sorry, i did not ment full width, just to know, how i can reduce the width. and center the text?kind regards
Jak
- This reply was modified 2 years, 8 months ago by Jak73.
March 7, 2022 at 1:42 am #1343407Hi Mike,
i’m facing a strange issue here:
When i change something in the code (font-size for example) and i save the page and click on preview. i find some messed upo code like this
.marquee > .track > .content { margin: 0; padding: 0; color: #fff; font-size: 25px; font-family: ‘press-start-2p’; } .marquee { position: relative; width: 100vw; max-width: 100%; height: 200px; overflow-x: hidden; } .track { position: absolute; white-space: nowrap; will-change: transform; animation: marquee 32s linear infinite; } @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }Then i need to close the browser chrome and start new. Then it seems to be working. Is this normal?
kind regards Jak
- This reply was modified 2 years, 8 months ago by Jak73.
March 7, 2022 at 2:08 am #1343411Hi,
Please ensure that you are copying the code from the forum and not an email, it will mess up the < & > which will make the<style>
tags not work.
If this is correct then try saving the page and view the real page not the preview.Best regards,
MikeMarch 7, 2022 at 2:17 am #1343412Hi Mike,
thanks a lot for your kind help!I did copy the real code. Seems only the preview is making issues. Tried it in Safari. Seems to be a preview issue…
How can i center the text and reduce the width please?
kind regards Jak
March 7, 2022 at 2:41 am #1343418Hi,
Sorry I’m not sure what you mean by center the text and reduce the width?
above you asked to make it full width and it is a scrolling marquee so it’s not going to center it’s moving?
perhaps a screenshot would help.Best regards,
MikeMarch 7, 2022 at 3:13 am #1343420Hi Mike,
sorry for the misunderstanding. I positioned the text below me Big intro image. There the text seems to be perfect in desktop view. Also the width is very nice in this position. Really cool, thank you!!!But I have a new still an issue in mobile view (for horizontal and vertical view):
1.) in vertical mobile view, the scrolling text is hidden and needs to be scrolled downto be seen(screenshot 1).
2.) how the position the scrolling text like the position in desctop view (screenshot 2: mobile view, when text is scrolled up to be seen)
3.) same issue in horizontal mobile view.Is it possible to fix it?
kind regards Jak
March 7, 2022 at 1:54 pm #1343481Hi,
Thanks for the feedback, please try this css in your Quick CSS@media only screen and (max-width: 767px) { #top.page-id-600 #main > .avia-section .marquee > .track > .content { padding-top: 0px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeMarch 7, 2022 at 2:19 pm #1343485Works really great, thank you very much Mike!!!
kind regards Jak
March 7, 2022 at 2:23 pm #1343487March 7, 2022 at 2:24 pm #1343489Please don’t close it now. Please give me some2 more days. Just for the case, if i have a question…
March 7, 2022 at 2:48 pm #1343496March 7, 2022 at 2:55 pm #1343497Hi Mike,
this looks really great now in Desktop mode and also responsive mode is getting perfect too. That’s sooo cool!
How can i adjust the space between the scrolling text and the image below in responsive mode (and also the space below from both)?Please see screenshot.
Kind regards Jak
March 8, 2022 at 3:06 am #1343551Hi,
Thanks for the screenshot, try this css@media only screen and (max-width: 767px) { #top.page-id-600 #main .marquee { height: 30px; } #top.page-id-600 .hr.hr-invisible.avia-builder-el-7 { height: 20px; } }
After applying the css, please clear your browser cache and check.
Best regards,
MikeMarch 8, 2022 at 11:27 am #1343592Just perfect!!!
Thank you very much Mike for helping me so much!!!kind regards Jak
March 8, 2022 at 1:17 pm #1343608Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘How to add a scrolling text’ is closed to new replies.