Pen Settings

HTML

CSS

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

JavaScript

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

Behavior

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.

HTML

              
                <svg version="1.1" viewBox="0 0 299.87 217.62" xmlns="http://www.w3.org/2000/svg">
    <g id="antibody">
        <path id="ab_body" d="m162.45 205.12c0 6.9036-5.5964 12.5-12.5 12.5s-12.5-5.5964-12.5-12.5l1e-5 -50-46.339-46.339 17.678-17.678 41.161 41.161 41.161-41.161 17.678 17.678-46.339 46.339z" fill="#ffff00" fill-rule="evenodd" stroke-width=".26458"/>
        <path id="ab_left_arm" d="m90.259 59.633a25 25 0 0 1 18.434 26.327 25 25 0 0 1-22.726 22.726 25 25 0 0 1-26.327-18.434" fill="none" stroke="#ffcc00" stroke-linecap="round" stroke-width="17.5"/>
        <path id="ab_left_inner_arm" d="m83.789 83.781 16.161-1.5165 8.8388 8.8388-17.678 17.678-8.8388-8.8388 1.5165-16.161" fill="#ffcc00"/>
        <path id="ab_right_arm" d="m209.64 59.633a25 25 0 0 0-18.434 26.327 25 25 0 0 0 22.726 22.726 25 25 0 0 0 26.327-18.434" fill="none" stroke="#ffcc00" stroke-linecap="round" stroke-width="17.5"/>
        <path id="ab_right_inner_arm" d="m216.11 83.781-16.161-1.5165-8.8388 8.8388 17.678 17.678 8.8388-8.8388-1.5165-16.161" fill="#ffcc00"/>
        <circle id="ab_right_eye" cx="182.27" cy="117.62" r="8.8388" fill="#000000" stroke="#0000ff" stroke-linecap="round" stroke-width="2"/>
        <circle id="ab_left_eye" cx="117.63" cy="117.62" r="8.8388" fill="#000000" stroke="#0000ff" stroke-linecap="round" stroke-width="2"/>
        <circle id="ab_right_inner_eye" cx="180.06" cy="115.41" r="2.2097" fill="#ffffff"/>
        <circle id="ab_left_inner_eye" cx="115.42" cy="115.41" r="2.2097" fill="#ffffff"/>
    </g>
    <g id="right_antigen" transform="translate(49.95,55.12)">
        <g fill="#800000">
            <path id="ag_r_bottom_left_arm" d="m150.08 27.055a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_r_bottom_left_inner_arm" d="m169.06 16.919 17.678-17.678 8.8388 8.8388-17.678 17.678z"/>
            <path id="ag_r_body" d="m217.68-4.9546a17.678 17.678 0 0 1-17.882 17.453 17.678 17.678 0 0 1-17.471-17.864 17.678 17.678 0 0 1 17.847-17.489 17.678 17.678 0 0 1 17.507 17.829"/>
            <path id="ag_r_bottom_right_arm" transform="scale(-1,1)" d="m-249.77 27.112a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_r_bottom_right_inner_arm" d="m230.78 16.977-17.678-17.678-8.8388 8.8388 17.678 17.678z"/>
            <path id="ag_r_top_left_arm" transform="scale(1,-1)" d="m150.23 37.352a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_r_top_left_inner_arm" d="m169.22-27.217 17.678 17.678 8.8388-8.8388-17.678-17.678z"/>
            <path id="ag_r_top_right_arm" transform="scale(-1)" d="m-249.92 37.41a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_r_top_right_inner_arm" d="m230.94-27.275-17.678 17.678-8.8388-8.8388 17.678-17.678z"/>
        </g>
        <path id="ag_r_left_eye" d="m204.42-13.961a4.4194 4.4194 0 0 1-4.4704 4.3634 4.4194 4.4194 0 0 1-4.3678-4.4661 4.4194 4.4194 0 0 1 4.4617-4.3723 4.4194 4.4194 0 0 1 4.3767 4.4574" fill="#ffffff" stroke="#ff0000" stroke-linecap="round"/>
        <path id="ag_r_right_eye" d="m213.26-5.1219a4.4194 4.4194 0 0 1-4.4704 4.3634 4.4194 4.4194 0 0 1-4.3678-4.4661 4.4194 4.4194 0 0 1 4.4617-4.3723 4.4194 4.4194 0 0 1 4.3767 4.4573" fill="#ffffff" stroke="#ff0000" stroke-linecap="round"/>
        <path id="ag_r_right_inner_eye" d="m208.84-4.6044a1.6573 1.6573 0 0 1-1.6764 1.6363 1.6573 1.6573 0 0 1-1.6379-1.6748 1.6573 1.6573 0 0 1 1.6731-1.6396 1.6573 1.6573 0 0 1 1.6413 1.6715" fill="#000000"/>
        <path id="ag_r_left_inner_eye" d="m201.59-12.422a1.6573 1.6573 0 0 1-1.6764 1.6363 1.6573 1.6573 0 0 1-1.6379-1.6748 1.6573 1.6573 0 0 1 1.6731-1.6396 1.6573 1.6573 0 0 1 1.6413 1.6715" fill="#000000"/>
        <path id="ag_r_left_eye_lid" d="m196.74-16.999a4.4194 4.4194 0 0 1 4.275-1.3191 4.4194 4.4194 0 0 1 3.2362 3.0892 4.4194 4.4194 0 0 1-1.1192 4.3317l-3.1307-3.1193z" fill="#ff0000"/>
        <path id="ag_r_right_eye_lid" d="m205.58-8.1601a4.4194 4.4194 0 0 1 4.275-1.3191 4.4194 4.4194 0 0 1 3.2362 3.0892 4.4194 4.4194 0 0 1-1.1192 4.3317l-3.1307-3.1193z" fill="#ff0000"/>
    </g>
    <g id="left_antigen" transform="matrix(-1,0,0,1,249.92,55.12)">
        <g fill="#800000">
            <path id="ag_l_bottom_right_arm" d="m150.08 27.055a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_l_bottom_right_inner_arm" d="m169.06 16.919 17.678-17.678 8.8388 8.8388-17.678 17.678z"/>
            <path id="ag_l_body" d="m217.68-4.9546a17.678 17.678 0 0 1-17.882 17.453 17.678 17.678 0 0 1-17.471-17.864 17.678 17.678 0 0 1 17.847-17.489 17.678 17.678 0 0 1 17.507 17.829"/>
            <path id="ag_l_bottom_left_arm" transform="scale(-1,1)" d="m-249.77 27.112a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_l_bottom_left_inner_arm" d="m230.78 16.977-17.678-17.678-8.8388 8.8388 17.678 17.678z"/>
            <path id="ag_l_top_right_arm" transform="scale(1,-1)" d="m150.23 37.352a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_l_top_right_inner_arm" d="m169.22-27.217 17.678 17.678 8.8388-8.8388-17.678-17.678z"/>
            <path id="ag_l_top_left_arm" transform="scale(-1)" d="m-249.92 37.41a16.161 16.161 0 0 1 16.699-14.543 16.161 16.161 0 0 1 15.539 15.776 16.161 16.161 0 0 1-14.793 16.477l-1.3637-16.104z" stroke-linecap="round" stroke-width="2"/>
            <path id="ag_l_top_left_inner_arm" d="m230.94-27.275-17.678 17.678-8.8388-8.8388 17.678-17.678z"/>
        </g>
        <path id="ag_l_right_eye" d="m204.42-13.961a4.4194 4.4194 0 0 1-4.4704 4.3634 4.4194 4.4194 0 0 1-4.3678-4.4661 4.4194 4.4194 0 0 1 4.4617-4.3723 4.4194 4.4194 0 0 1 4.3767 4.4574" fill="#ffffff" stroke="#ff0000" stroke-linecap="round"/>
        <path id="ag_l_left_eye" d="m213.26-5.1219a4.4194 4.4194 0 0 1-4.4704 4.3634 4.4194 4.4194 0 0 1-4.3678-4.4661 4.4194 4.4194 0 0 1 4.4617-4.3723 4.4194 4.4194 0 0 1 4.3767 4.4573" fill="#ffffff" stroke="#ff0000" stroke-linecap="round"/>
        <path id="ag_l_left_inner_eye" d="m208.84-4.6044a1.6573 1.6573 0 0 1-1.6764 1.6363 1.6573 1.6573 0 0 1-1.6379-1.6748 1.6573 1.6573 0 0 1 1.6731-1.6396 1.6573 1.6573 0 0 1 1.6413 1.6715" fill="#000000"/>
        <path id="ag_l_right_inner_eye" d="m201.59-12.422a1.6573 1.6573 0 0 1-1.6764 1.6363 1.6573 1.6573 0 0 1-1.6379-1.6748 1.6573 1.6573 0 0 1 1.6731-1.6396 1.6573 1.6573 0 0 1 1.6413 1.6715" fill="#000000"/>
        <path id="ag_l_right_eye_lid" d="m196.74-16.999a4.4194 4.4194 0 0 1 4.275-1.3191 4.4194 4.4194 0 0 1 3.2362 3.0892 4.4194 4.4194 0 0 1-1.1192 4.3317l-3.1307-3.1193z" fill="#ff0000"/>
        <path id="ag_l_left_eye_lid" d="m205.58-8.1601a4.4194 4.4194 0 0 1 4.275-1.3191 4.4194 4.4194 0 0 1 3.2362 3.0892 4.4194 4.4194 0 0 1-1.1192 4.3317l-3.1307-3.1193z" fill="#ff0000"/>
    </g>
    <clipPath id="ab_clip_left_eye">
        <circle cx="117.63" cy="117.62" r="9.8388"/>        
    </clipPath>
    <circle cx="112.63" cy="117.62" r="16.8388" fill="#ffcc00" clip-path="url(#ab_clip_left_eye)" class="ab_eye_lids"/>
    <clipPath id="ab_clip_right_eye">
        <circle cx="182.27" cy="117.62" r="9.8388"/>        
    </clipPath>
    <circle cx="187.27" cy="117.62" r="16.8388" fill="#ffcc00" clip-path="url(#ab_clip_right_eye)" class="ab_eye_lids"/>
</svg>

              
            
!

CSS

              
                body {
    margin: 0;
    height: 100vh;
    background-color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    width: 95vmin;
    animation: floating 1s ease-in-out infinite alternate;
}

@keyframes floating {
    0% {
        transform: translatey(0);
    }
    100% {
        transform: translatey(5%);
    }
}

.ab_eye_lids {
    animation: blink 4s ease-in-out infinite;
}

@keyframes blink {
    0% {
        cy: 90.94;
    }
    10% {
        cy: 117.62;
    }
    20%, 100% {
        cy: 90.94;
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console