Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


Save Automatically?

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 );