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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.


                <div id="mover1"><p class="message">Требуется браузер с поддержкой CSS Motion Path (напр. Chrome 43+ с включённым параметром «Включить экспериментальные функции веб-платформы» в chrome://flags)</p></div>
<div id="mover2"></div>
<div id="mover3"></div>
<div id="mover4"></div>


                * {
  box-sizing: border-box;
body {
  min-height: 30rem;

div {
  motion-path: path("M10.906,0.016c-2.483-0.114-4.694,0.352-5.7,2.799C4.731,3.97,5.892,5.399,6.802,5.861    c2.679,1.357,5.485,0.787,8.167,2.812c3.398,2.565-6.048,5.269-7.409,5.658c-1.413,0.404-2.937,0.86-4.189,1.642    c-2.819,1.759-3.985,4.196-3.057,7.495c1.896,6.734,13.793,8.387,19.338,9.38c9.12,1.634,18.447,1.689,27.527,3.492    c4.514,0.896,13.329,3.591,12.511,9.714c-0.692,5.185-11.817,6.951-15.875,7.625c-11.046,1.832-22.457-0.512-32.876,4.549    c-7.9,3.837-13.306,12.471-8.55,20.846c5.899,10.387,16.389,13.668,27.248,16.418c14.515,3.676,29.212,6.681,44.091,8.421    c15.833,1.852,31.802,1.709,47.715,1.752c29.841,0.081,59.566,2.271,88.679,9.131c11.792,2.778,26.486,7.313,33.845,17.71    c3.776,5.334,0.808,11.219,0.757,16.965c-0.041,4.696,5.013,8.609,8.525,10.882c10.104,6.535,23.849,8.897,35.613,9.364    c15.237,0.605,30.805-0.596,46.037-1.222c33.685-1.386,67.563-3.955,101.123,0.618c0.636,0.086,2.28-0.933,1.174-1.084    c-30.611-4.171-61.518-2.503-92.262-1.083c-16.089,0.742-32.205,1.301-48.308,1.663c-14.25,0.32-29.35-1.93-41.847-9.216    c-3.227-1.882-5.659-4.476-7.448-7.724c-1.474-2.677-0.207-5.966,0.303-8.717c0.896-4.834-0.199-9.305-3.295-13.072    c-7.081-8.616-19.685-12.619-30.031-15.41c-27.354-7.378-56.245-9.521-84.453-9.891c-16.031-0.21-32.062,0.17-48.061-1.096    c-16.014-1.267-31.808-4.417-47.401-8.188C22.121,92.328,7.273,88.834,2.923,75.122c-2.375-7.488,3.89-13.674,10.052-16.667    c6.57-3.191,14.62-2.763,21.726-2.976c7.642-0.229,17.835-0.973,24.138-5.998c7.513-5.99-2.13-11.888-7.943-13.609    c-8.972-2.656-18.778-2.363-27.998-3.766c-4.795-0.73-28.022-5.317-19.643-14.583c3.55-3.925,11.73-1.957,14.362-7.215    c0.64-1.278-0.994-2.668-1.896-3.182c-1.218-0.694-2.386-1.332-3.747-1.669c-0.381-0.049-0.763-0.087-1.146-0.114    c-0.588-0.063-1.175-0.126-1.763-0.189c-2.434-0.713-2.067-2.046,1.099-4C10.925,1.188,12.215,0.076,10.906,0.016L10.906,0.016z");
  width: 4rem;
  height: 4rem;
  //border-radius: 50%;
  background: green;
  background: linear-gradient(to right, #b83435, #b83435 50%, #237598 50%, #237598);
  .message {
    display: none;
  .no-motionpath & {
    width: auto;
    height: inherit;
    background: transparent;
    p {
      display: block;
      color: #444;
      padding: 1rem;


var ms = document.querySelectorAll('div');
var defaultTiming = {
  duration: 10000,
  iterations: Infinity,
  fill: 'both',
  easing: 'ease-in-out'

if (ms[0].style.motionOffset !== undefined) {
  var easing = 'cubic-bezier(.645,.045,0.355,1)';
    { motionOffset: 0, motionRotation: 'auto' },
    { motionOffset: '100%', motionRotation: 'auto' }
  ], defaultTiming);
    { motionOffset: 0, motionRotation: 'reverse' },
    { motionOffset: '100%', motionRotation: 'reverse' }
  ], defaultTiming);
    { motionOffset: 0, motionRotation: 'auto 45deg' },
    { motionOffset: '100%', motionRotation: 'auto 45deg' }
  ], defaultTiming);
    { motionOffset: 0, motionRotation: '90deg' },
    { motionOffset: '100%', motionRotation: '90deg' }
  ], defaultTiming);

  for (var i=0; i < ms.length; i++) {
    { transform: 'scale(0.1)', opacity: .5 },
    { transform: 'scale(1)', opacity: 1 }
  ], {
    duration: 5000,
    iterations: Infinity,
    direction: 'alternate',
    fill: 'both',
    easing: 'cubic-bezier(0.55,0.055,0.675,0.19)'//'ease-in'
} else {
  document.documentElement.className = 'no-motionpath'