Changed around line 1
- buildHtml
- theme roboto
+ marqueeParser
+ description A scrolling marquee text effect.
+ extends paragraphParser
+ cue marquee
+ javascript
+ buildHtml() {
+ const id = this._getUid()
+ const text = this.content || ""
+ const styles = `
+ @keyframes scroll-left {
+ 0% { transform: translateX(100%); }
+ 100% { transform: translateX(-100%); }
+ }
+ .scrollMarquee${id} {
+ overflow: hidden;
+ padding: 1rem;
+ background: #f9fafb;
+ border-radius: 0.5rem;
+ margin: 1rem 0;
+ }
+ .scrollMarquee${id} span {
+ display: inline-block;
+ white-space: nowrap;
+ animation: scroll-left 15s linear infinite;
+ font-weight: 600;
+ color: #2563eb;
+ }`
- Hello World my name is
+ return `
+ }
+ tag = "div"
+ defaultClassName = "scrollMarquee"