cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


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.

              <svg width="350" height="350" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Added cursor="pointer" to force a cursor in Chrome -->
<circle stroke="#88CDD5" fill="none" stroke-width="30"  cx="160" cy="160" r="140" cursor="pointer" pointer-events="visible"></circle></svg>

  <button type="button">Reset the ouput</button>
  <pre id="output"></pre>

              body {
  font-family: sans-serif;
  display: flex;  

label {
  font-weight: bold;

div {
  width: 250px;

#output {
  background: hsla(276, 96%, 80%, .5);
  height: 300px;
  overflow-y: scroll;
  padding: 1rem;

button {
  background: #88cdd5;
  border: 0;
  color: #222;
  font-size: 18px;
  padding: .5em 1em;
              const circ = document.querySelector('circle');
const output = document.getElementById('output');
const btn = document.querySelector('button');

const useEventType = (typeof window.PointerEvent === 'function') ? 'pointer' : 'mouse';
const listeners = ['click','touchstart','touchend', 'touchmove',`${useEventType}enter`,`${useEventType}leave`, `${useEventType}move`];

const pointerHandler = (event) => {
  const evtype = document.createTextNode(event.type + "\n");

listeners.map((etype) => {
   circ.addEventListener(etype, pointerHandler);

btn.addEventListener('click', (event) => {
  output.innerHTML = '';

Loading ..................