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.


                <link href='' rel='stylesheet' type='text/css'>

<p>Цей приклад показує як працює властивість <code>animation</code>. Змінюйте значення для під-властивостей нижче, щоб змінити відображення анімації.</p>


<strong>animation: </strong>


<input type="number" class="input" min="0" id="dur" value="1">s 

<select class="input" id="type">
  <option value="linear" name="value2" selected>linear</option>
  <option value="ease" name="value2">ease</option>
  <option value="ease-in" name="value2">ease-in</option>
  <option value="ease-out" name="value2">ease-out</option>
  <option value="ease-in-out" name="value2">ease-in-out</option>
  <option value="step-start" name="value2">step-start</option>
  <option value="step-end" name="value2">step-end</option>

<select class="input" id="count">
  <option value="infinite" name="value2" selected>infinite</option>
  <option value="1s" name="value2">1s</option>
  <option value="5s" name="value2">5s</option>


<div class="box">
	<span>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod</span>


                * {
  box-sizing: border-box;
  padding: 0;

body {
  font-family: 'Fira Sans', sans-serif;

.wm {
  min-height: 100px;

.box span {
  margin-top: 0;
  display: block;
  animation: animation_name 1s linear infinite;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;

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

hr {
  margin-bottom: 16px;


                $('.input').on('change', function() {
  var dur = $('#dur').val();
  var type = $('#type').find(":selected").text();
  var count = $('#count').find(":selected").text();
  $('.box span').css( 'animation', 'animation_name ' + dur + 's ' + type + ' ' + count );