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.


                <svg width="150" height="150" viewbox="0,0,38.16, 38.16">
  <circle r="15.9" cx="19.08" cy="19.08" />
  <circle r="15.9" cx="19.08" cy="19.08" style="" />
  <text id="text" x="50%" y="50%" dy="0.2em" text-anchor="middle" style="font-size: 10px; line-height: 1">
<div class="description">

    Радиус круга-значения
    должен быть 15.9, чтобы
    длина окружности была
    равна 100px. А потом в стилях
    svg зададим кругу тот
    размер, который нам
    нужен по макету. SVG растянется.
    Этот фокус позволит
    указывать значения
    stroke-dasharray в px, но как будто в %.

  <p>Сумма значений в
    stroke-dasharray должна быть равна
    stroke-dashoffset: 25 нужен, чтобы дуга-значение
    начиналась с 0 часов,
    если воспринимать
    круг как циферблат


                @import url('');

    * {
      box-sizing: inherit;

    html {
      box-sizing: border-box;

    body {
      margin: 0;
      padding: 30px;
      font-size: 20px;
      font-family: 'Neucha', cursive;

    svg {
      --persent: 54;

    circle {
      fill: transparent;

    circle:nth-child(1) {
      stroke: #e8f5ff;
      stroke-width: 5;

    circle:nth-child(2) {
      stroke: #2781d0;
      stroke-width: 5;
      stroke-dashoffset: 25;
      stroke-dasharray: var(--persent), calc(100 - var(--persent));

    .description {
      max-width: 500px;
      margin-top: 50px;