Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

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


Auto Save

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 xmlns="" viewBox="0 0 500 400">
  <filter id="bloody" style="color-interpolation-filters:sRGB" height="1.5" y="-0.25" width="1.5" x="-0.25">
   <feTurbulence type="fractalNoise" seed="225" baseFrequency="0.065" numOctaves="9" />
   <feBlend mode="multiply" in2="SourceGraphic" />
   <feColorMatrix type="matrix" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 2 0 0 0.5 -0.8 " result="alpha" />
   <feComposite operator="in" in="SourceGraphic" in2="alpha" />
   <feGaussianBlur stdDeviation="3" />
   <feSpecularLighting lighting-color="rgb(255,255,255)" surfaceScale="0.87" specularExponent="25" result="spec">
    <feDistantLight elevation="110" azimuth="240" />
   <feComposite operator="in" in="SourceGraphic" in2="spec" />
      <feFuncA type="linear" slope="1.9" intercept="-0.5"/>
  <filter id="shadow" width="4" height="8">
    <feGaussianBlur stdDeviation="10">
      <animate attributeName="stdDeviation" from="10" to="0"
               fill="freeze" begin="" dur="0.3s" />
      <feFuncA type="linear" slope="0.2"/>
    <feOffset dx="200" dy="400">
      <animate attributeName="dx" from="200" to="0" fill="freeze"
               begin="" dur="0.2s" />
      <animate attributeName="dy" from="400" to="0"
               fill="freeze" begin="" dur="0.3s" />
    <feComposite in2="SourceGraphic" />
  <g class="blood">
    <path d="M 367,108 368,130 H 347" />
    <path class="trickle" d="M 368,130 C 365,153 346,183.5 351,196 L 355,205 358,230 C 361,255.5 331,294.5 338,363" pathLength="100">
      <animate attributeName="stroke-dashoffset" fill="freeze"
               begin="" dur="10s"
               keyTimes="0;0.2;1" values="100;100;0"
               calcMode="spline" keySplines="0.4 0 0.5 1;0.4 0 0.5 1" />
    <animate attributeName="stroke-width" fill="freeze"
             keyTimes="0;0.2;1" values="0;0;10"
             begin="" dur="2s" />
    <set attributeName="filter" to="url(#bloody)" 
         fill="freeeze" begin="" />
  <g transform="translate(60 320)">
       <animateTransform attributeName="transform" type="translate"
             from="60 320" to="30 130" fill="freeze"
             begin="" dur="0.2s" />
    <text transform="scale(0)" class="shout">BAAH!
       <animateTransform attributeName="transform" type="scale"
             from="0" to="1" fill="freeze"
             begin="" dur="0.2s" />
  <g class="hint">
    <title>Do you dare...?</title>
    <circle r="90" cx="105" cy="300">
      <animate attributeName="opacity" values="0;0.2;0"
               begin="0s" dur="3s" repeatCount="indefinite"
               keyTimes="0;0.5;1" end="" />
    <text id="trigger" x="30" y="350">🎃️</text>
    <animate attributeName="font-size" values="150;150;80"
             begin="" dur="4s" fill="freeze"                keyTimes="0;0.2;1"/>


                @font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Open Sans ExtraBold'), local('OpenSans-ExtraBold'), url( format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;

body {
  background: #bbb;
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-grow: 1;

.hint {
  font-size: 150px;
  cursor: pointer;

.hint circle {
  fill: #0040ff;
  opacity: 0;

.shout {
  font-family: 'Open Sans';
  font-size: 120px;
  filter: url(#shadow);
.blood {
  stroke-linejoin: round;
.trickle {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;