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.


                <link href="" rel="stylesheet" />
<p class="infotext" id="infotext">
  Click anywhere to inspect displacement map
<svg class="container" xmlns="" width="1024px" height="1024px">
    <filter id="dm-filter" x="-20%" y="-20%" width="140%" height="140%" color-interpolation-filters="sRGB" preserveAspectRatio="none">
      <feImage id="feimage" preserveAspectRatio="none" result="FEIMG1" width="3762" height="100%" x="0" y="0">
        <animate attributeName="x" values="0;-1882;" dur="21s" repeatCount="1000" />
      <feDisplacementMap in="SourceGraphic" in2="FEIMG1" scale="70" xChannelSelector="R" yChannelSelector="B">
        <animate attributeName="scale" from="0" to="20" dur="5s" repeatCount="1" id="fadein" />
        <animate attributeName="scale" values="20;200;20" dur="9s" repeatCount="1000" begin="fadein.end" />
      <feGaussianBlur id="gaussianblur" stdDeviation="1.25" />
      <feConvolveMatrix order="3" kernelMatrix="3.3 -3.3  3.3 -3.3 -.3 -3.3 3.3  -3.3  3.3" />
  <g class="displacement">
    <svg width="100%" height="100%" viewBox="0 0 800 400">
      <rect width="100%" height="100%" fill="transparent" />
      <text class="bungeeinline" y="50%" x="50%" text-anchor="middle" letter-spacing="-.09em">
        <tspan dy="0">Neuro</tspan>
        <tspan x="50%" dy=".75em">honey</tspan>


                @use postcss-preset-env;

*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

html {
    height: 100%;

body {
    margin: 0;
    padding: 1.25em;
    height: 100%;
    color: white;
    font: 0.85em -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    min-width: 320px;

p {
    margin-bottom: 1em;

.filter {
    position: absolute;
    top: 0;
    left: -1;
    width: 1px;
    height: 1px;
    visibility: hidden;

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: radial-gradient(circle, rgba(241, 0, 163, 1) 0%, rgba(210, 14, 14, 1) 100%);
    cursor: pointer;

.container {
    position: relative;
    width: 800px;
    height: 400px;
    margin: 0 auto;

.displacement {
    filter: url('#dm-filter');

.bungeeinline {
    display: block;
    position: relative;
    margin: 0 auto;
    padding: 0.5em;
    top: 50%;
    fill: lime;
    font: 100px/0.75 'Bungee', sans-serif;
    text-align: justify;

.infotext {
    font: 0.8em/0.75 'Bungee', sans-serif;



                const suffix = webpSupported() ? "webp" : "jpg";

    method: "GET",
    headers: new Headers(),
    mode: "cors",
    cache: "default"
  .then((response) => {
    return response.blob();
  .then((blob) => {
    const url =  URL.createObjectURL(blob);
    const feImage = document.querySelector("#feimage");

    feImage.setAttribute("href", url);

const info = document.getElementById("infotext");
const filter = document.getElementById("dm-filter");
const feDisplacementMap = document.querySelector("feDisplacementMap");
const feGaussianBlur = document.querySelector("feGaussianBlur");
const feConvolveMatrix = document.querySelector("feConvolveMatrix");
let fragment = new DocumentFragment();

const showDisplacementMap = () => {
  info.innerText = "Click anywhere to inspect displacement filter effect";
  document.removeEventListener("click", showDisplacementMap);
  document.addEventListener("click", showFilter);

const showFilter = () => {
  info.innerText = "Click anywhere to inspect displacement map";
  document.removeEventListener("click", showFilter);
  document.addEventListener("click", showDisplacementMap);

document.addEventListener("click", showDisplacementMap);