Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                hielelelasda
<h1>helo</h1><h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>
<h1>helo</h1>

<div class='marquee-bottom'>
	<p>Such humiliations pale, however, when one considers the Gordian knot that Mr. Bolton went to Ankara to untangle. That is, how to stop Mr. Erdogan from slaughtering Syrian Kurdish forces, who have been essential in fighting the Islamic State, after the Americans leave northern Syria. Mr. Erdogan considers the Syrian Kurds to be terrorists aligned with those in Turkey who have been in a separatist battle with the state for about 40 years.</p>
</div>
<div class='marquee-top'>
	<p>
		Mr. Bolton’s diplomatic mission was unusually tough because both Turkey and the Kurds are partners of the United States. The Syrian Kurds are formidable fighters, and the progress against ISIS that Mr. Trump touts would have been impossible without them.


	</p>
</div>
<div class='marquee-left'>
	<p>
		Dozens of museums—presenting art, cultural heritage, natural history, and science—will open their doors and invite visitors to attend their museums free of charge.
	</p>
</div>
<div class='marquee-right'>
	
	<p>
		Museums Annual Free-For-All Day Museums Annual Free-For-All Day Museums Annual Free-For-All Day Museums Annual Free-For-All Day

	</p>
</div>
              
            
!

CSS

              
                h1{
	
	font-size:300px;
}

$marquee-element-width: 33.333;
$duration: 5s;
$black: rgb(10,8,11);

@keyframes marquee-horizontal {
    0% {text-indent: 0;}
    100% {text-indent: $marquee-element-width * -2vw;}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
	
body {
}

[class*=marquee] {
	font-size: 12vw;
	white-space: nowrap;
	overflow: hidden;
	position: fixed;
	color: $black;
	background: white;
	span {
		display: inline-block;
		text-align: center;
		text-indent: 0; // to stop the cascade
		width: $marquee-element-width * 1vw;
	}
}

.marquee-bottom {
	bottom: 0;
	width: 100%;
	border-top: 1px solid;
	animation: marquee-horizontal $duration linear infinite;
}
.marquee-top {
	top: 0;
	transform: rotate(180deg);
	width: 100%;
	border-top: 1px solid;
	animation: marquee-horizontal $duration linear infinite;
}
.marquee-left {
	top: 0;
	transform: rotate(90deg);
	transform-origin: bottom left;
	width: 100%;
	border-top: 1px solid;
	animation: marquee-horizontal $duration linear infinite;
}
.marquee-right {
	top: 0;
	transform: rotate(-90deg);
	transform-origin: bottom right;
	width: 100%;
	border-top: 1px solid;
	animation: marquee-horizontal $duration linear infinite;
}
              
            
!

JS

              
                
              
            
!
999px

Console