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.


                <div class="info">
	<p>За допомогою універсальної властивості <code>animation-delay</code> ми можемо встановити час очікування перед запуском циклу анімації.</p>
	<p>Нижче, показаний приклад такої анімації. Ми визначили таймер на 4 секунди.</p>

<div id="time">4s</div>

<div class="wrapper">
	<span id="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</span>


                * {
	box-sizing: border-box;

body {
	font-family: monospace;
	font-size: 15px;
	overflow: hidden;
	line-height: 1.45;

.info {
	padding: 6px;

code {
	font-weight: 700;
	color: #444;
	border-bottom: 2px solid #666;

.wrapper {
  background-color: #dcdcdc;

#text {
  margin-top: 0;
  display: block;
  animation: anim 1.75s linear 10s infinite alternate none paused;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
  /*animation-delay: 2s;
  animation-name: anim;
  animation-play-state: paused;
  animation-duration: .8s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;*/

@keyframes anim {
  0% { margin-top: 0; }
  50% { margin-top: 50px; }
  100% { margin-top: 0; }


                function startTimer() {
var timer = 10, seconds;
var showTime = setInterval(function () {
    seconds = parseInt(timer % 60, 10);
    document.getElementById('time').innerText = seconds + 's';

    if (--timer < 0) {
	}, 1000);

window.onload = function() {
	document.getElementById('text').style.animationPlayState = 'running';