Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <div class="canvas">
  <img src="https://images.unsplash.com/photo-1553514029-1318c9127859?cs=tinysrgb&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTM5NDAxMTk&ixlib=rb-1.2.1&auto=format&auto=compress&w=1600" srcset="https://images.unsplash.com/photo-1553514029-1318c9127859?cs=tinysrgb&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTM5NDAxMTk&ixlib=rb-1.2.1&auto=format&auto=compress&w=1600 1600w, https://images.unsplash.com/photo-1553514029-1318c9127859?cs=tinysrgb&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTM5NDAxMTk&ixlib=rb-1.2.1&auto=format&auto=compress&w=1200 1200w, https://images.unsplash.com/photo-1553514029-1318c9127859?cs=tinysrgb&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTM5NDAxMTk&ixlib=rb-1.2.1&auto=format&auto=compress&w=800 800w, https://images.unsplash.com/photo-1553514029-1318c9127859?cs=tinysrgb&ixid=MnwzMjM4NDZ8MHwxfHJhbmRvbXx8fHx8fHx8fDE2NTM5NDAxMTk&ixlib=rb-1.2.1&auto=format&auto=compress&w=400 400w" alt="" />
</div>
              
            
!

CSS

              
                ///
/// 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%,
    #fff,
    $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;
  filter:
    grayscale(1) 
    brightness($photo-brightness) 
    contrast($photo-contrast) 
    blur($photo-blur);
}
              
            
!

JS

              
                
              
            
!
999px

Console