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.


                <div class="canvas">
  <img src="" srcset=" 1600w, 1200w, 800w, 400w" alt="" />


/// Radial Engraving Photo Effect
/// 1. Line thickness: smaller lines give a sketchier look, like wall
///    street journal hedcuts. thicker gives a more woodcut look.
/// 2. Line color: amplifies the photo contrast. Too dark means no pure
///    whites, too light blows out the photo.
/// 3. Line contrast: creates the engraving look by converting grayscale lines
///    (and the photo overlay) to pure black or white.
/// 4. Photo brightness: can tune the image toward white or black.
/// 5. Photo contrast: controls how "dramatic" the contrast between lights and
///    darks is. This engraving technique rewards bold contrast.
/// 6. Photo blur: controls how "clean" the engraving lines are.
/// 7. Photo blend mode: Try hard-light, soft-light, screen, and overlay.
///.   Overlay is the most "natural" but makes it hard to get areas of white
///    with no lines. "hard light" emphasizes contrast.

$line-thickness: 0.25em;  // 1
$line-color: #333;       // 2
$line-contrast: 500%;    // 3
$photo-brightness: 90%;  // 4
$photo-contrast: 150%;   // 5
$photo-blur: 3px;        // 6
$blend-mode: hard-light; // 7

.canvas {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: repeating-radial-gradient(
    circle at 0 -25%,
    $line-color ($line-thickness / 2),
    #fff $line-thickness
  filter: contrast($line-contrast);

.canvas img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: $blend-mode;