Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


Variant of the marquee demo by Manoela Ilic appeared on

This fork uses a single element multiplied by 4 text shadows. -->
<input type="checkbox" /><label>Auto animate</label>

<div class="marquee" style="--tw: 40vw; --ad: 2.5s;">

<div class="marquee marquee--long" style="--tw: 189ch; --ad: 12s;">
	<span>Windows 8 and Windows RT are focused 
      on your life—your friends and family, your apps, 
      and your stuff. With new things like the Start 
      screen, charms and a Microsoft account, you can 
      spend less time searching and more time doing.


                .marquee {
   margin: 2rem 0;
   font-size: clamp(4vw, 4rem, 8vw);
   overflow: hidden;

.marquee--long { 
   font-size: 1.25rem; 

.marquee span {   
    display: inline-block;
    white-space: nowrap;
    color: #00112C;
    width: var(--tw);
    text-shadow: var(--tw) 0 currentColor, 
                 calc(var(--tw) * 2) 0 currentColor, 
                 calc(var(--tw) * 3) 0 currentColor,
                 calc(var(--tw) * 4) 0 currentColor;
    will-change: transform;
    animation: marquee var(--ad) linear infinite;
    animation-play-state: paused;

.marquee:hover span {
    animation-play-state: running;

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }

 * on MacOs: System Preferences > 
 *           Accessibility > 
 *           Display > Reduce motion

@media (prefers-reduced-motion: reduce) {
  .marquee span {
    animation: none;
    text-shadow: none;
    width: auto;
    display: block;
    line-height: 1.5;
    text-align: center;
    white-space: normal;

:checked ~ .marquee span { animation-play-state: running; }
label { font: .85rem Courier; margin-left: .5em}