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


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.


                <!-- Aside  -->
  <a aria-label="visit Frontext" href="" target="_blank" id="frontext">
    <svg width="100" height="100" viewBox="0 0 200 200" fill="none" xmlns="">
      <rect width="200" height="200" rx="100" fill="white" />
      <path d="M42 121L100 31V168L42 121Z" fill="#363535" />
      <path d="M158 121L100 31V168L158 121Z" fill="#4F4F4F" />
      <circle cx="100" cy="100" r="89.5" stroke="#4F4F4F" />
<div class="wrapper">
  <img src="" alt="touchscreen">
  <svg viewBox="0 0 24 24">
    <path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" />
<button>Check again</button>


                body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
.wrapper {
  transition: 0.5s ease;
  opacity: 0;
.wrapper {
  margin-left: 20px;
  position: relative;
  transform: translate(100px, 50px) rotate(25deg);
.wrapper svg {
  width: 100%;
  position: absolute;
  left: 0;
  color: red;
.show {
  opacity: 1;
  transform: translate(0) rotate(0);
  pointer-events: all;
button {
  background-color: transparent;
  border: 1px solid black;
  padding: 6px 10px;
  transform: translateX(150px);
  outline: none;
  cursor: pointer;
  pointer-events: none;
  text-transform: uppercase;
  font-size: 12px;



                const wrapper = document.querySelector(".wrapper"),
  x = document.querySelector(".wrapper svg"),
  button = document.querySelector("button"),
  isTouchscreen = () => {

    if ("ontouchstart" in document.documentElement) { = "none";
    setTimeout(() => {
    }, 1000);
window.onload = isTouchscreen();
button.addEventListener("click", isTouchscreen);