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.


                <div class="background">
  <div class="blur"></div>

<button class="btn" onClick="addFilters()">Toggle Multiple Filters</button>  


                // Basic reset
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

// Content we're putting a blur over
.background {
  background-image: url(;
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  width: 100%;

// Background Blur using backdrop-filter
.blur {
  animation: changeWidth 8s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.2); // Make sure this color has an opacity of less than 1
  backdrop-filter: blur(8px); // This be the blur
  border-right: 1px solid whitesmoke;
  height: 100vh;

// Multiple filters
.multiple-filters {
  backdrop-filter: blur(20px) saturate(120%) contrast(200%);

// Animation that changes the width of the blur
@keyframes changeWidth {
  0% {
    width: 0%;
  5% {
    width: 0%;
  50% {
    width: 50%;
  80% {
    width: 50%;
  100% {
    width: 0%;

// Button to toggle multiple-filters class
.btn {
  backface-visibility: hidden;
  background: black;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  top: 50%;
  transform: translate(-50%,-50%);
  z-index: 10;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  &:focus {
    outline: none;


                const filter = document.querySelector('.blur');

const addFilters = () => filter.classList.toggle('multiple-filters');