Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: does not Marquee MyText

$
0
0

But of course, nothing stops you from creating a text marquee with CSS yourself, in just a few lines of code:

 

.marquee {    width: 450px;    overflow: hidden;    white-space: nowrap;    animation: marquee 50s linear infinite;
}
@keyframes marquee {    0%   { text-indent: 2em }    100% { text-indent: -100em }
}
<Text text="Lorem ipsum dolor sit amet, consectetur adipiscing elit." setMaxLines="1" wrapping="false" class="marquee" />

However, you should consider if a marquee is really good UX. There is a reason they were in fashion in 1998 and out of fashion in 2001


Viewing all articles
Browse latest Browse all 8581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>