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


                <p> transform-box demo</p>
<svg xmlns="" viewBox="0 -50 500 450">
   <g class="rocket">
        <path fill="#63c6be" d="M255.184 209.8l11.5 16.074a8.144 8.144 0 011.286 6.667l-5.345 21.969a.962.962 0 01-1.163.708.972.972 0 01-.429-.231l-17.389-15.75z"/>
        <path fill="#63c6be" d="M211.834 209.787l-11.509 16.065a8.152 8.152 0 00-1.3 6.664l5.323 21.974a.965.965 0 001.593.479l17.4-15.738z"/>
        <path fill="#fff" d="M233.6 147.331c-19.639 16.09-30.4 66.818-14.487 90.867a2.487 2.487 0 002.047 1.193l24.58.057a2.49 2.49 0 002.052-1.183c15.998-23.974 5.393-74.752-14.192-90.934z"/>
        <path fill="#63c6be" d="M233.6 147.331c-7.1 5.813-13.015 16.158-16.951 28.123-6.316-.284 33.8.04 33.8.04-3.897-11.967-9.778-22.323-16.849-28.163z"/>
        <circle cx="233.509" cy="196.173" r="11.331" fill="#22173f" stroke="#63c6be" stroke-miterlimit="10" stroke-width="2"/>
      <path fill="#fff" d="M233.51 240.746a12.878 12.878 0 00-12.622 13.119c0 18.841 12.622 30.157 12.622 55.647 0-25.49 12.621-36.806 12.621-55.647a12.878 12.878 0 00-12.621-13.119z" opacity=".5" style="mix-blend-mode:soft-light"/>
      <path fill="#fff" d="M233.51 242.858a8.621 8.621 0 00-8.45 8.783c0 12.613 8.45 19.858 8.45 36.922 0-17.064 8.449-24.309 8.449-36.922a8.621 8.621 0 00-8.449-8.783z" style="mix-blend-mode:soft-light"/>
    <circle class="fill" cx="198" cy="145" r="8" fill="#a663ff"/>
    <circle class="view" opacity="0" cx="0" cy="-50" r="12" fill="#a663ff"/>

<div class="options">
<input type="radio" class="radio" id="fill-box" name="drone" value="fill-box" checked>
<label for="fill-box">fill-box</label>
<input type="radio" class="radio" id="view-box" name="drone" value="view-box">
<label for="view-box">view-box</label>


                @import url('');

.rocket {
  transform-box: var(--transform-box);
  animation: rotate 8s forwards infinite linear;
  outline: 3px solid white;

@keyframes rotate {
  from {
    transform: rotate(0deg)
  to {
    transform: rotate(360deg)

:root {
  --transform-box: fill-box;

body {
  margin: 0;
  padding: 0;
  background-color: #22173f;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

.options {
  margin-top: 2rem;

p, label {
  font-family: 'Gochi Hand', sans-serif;
  color: #fff;
  letter-spacing: 0.1rem;
  font-size: 1.3rem;
  margin: 0 2rem 0.5rem 0.5rem;

svg {
  width: 40%;
  border: 2px solid white;
  overflow: visible;



                let radios = document.querySelectorAll('.radio');
let fill = document.querySelector('.fill');
let view = document.querySelector('.view');

radios.forEach( radio => {
    radio.addEventListener("click", () => {'--transform-box', radio.value);
        if (radio.value === "fill-box") {
 = 1;
 = 0;
        } else {
 = 1;
 = 0;