Interactive procedural graph notebook paper background generated entirely with multiple stacked CSS gradients and adjustable gap sizing.

Procedural CSS Gradient Grid Background

An interactive graph notebook paper pattern drawn entirely via stacked, layered CSS gradients. By combining major and minor linear grid lines, radial cross masks, and corner border offsets, it forms a fully customizable procedural background. It utilizes CSS @property Houdini variables to smoothly transition gap sizing updates, alongside dynamic theme and color hue tuning.

Technologies:
HTML CSS JavaScript
Difficulty: Intermediate
Browser Support (as of Jun 2026):
Chrome Chrome 110+ Edge Edge 110+ Firefox Firefox 128+ Safari Safari 16.4+
Features:
Procedural Gradients Houdini Transition Adaptive Themes
Code by: Simey Simey
License: MIT
A realistic tear strip animation using CSS Scroll-Driven Animations and a range input to simulate tearing open a package.

Interactive CSS Tear Strip Animation

Interactive CSS Tear Strip Animation simulates the satisfying physical action of tearing open a cardboard package. It cleverly uses an invisible <input type="range"> linked to the CSS Scroll-Driven Animations API (animation-timeline: --thumb). As the user drags the slider, CSS variables dynamically update clip-path, box-shadow, and transform properties to reveal the content beneath while curling the torn strip. A JavaScript fallback ensures compatibility for browsers without native scroll-timeline support.

Technologies:
HTML CSS JavaScript/Babel
Difficulty: Advanced
Browser Support (as of Jun 2026):
Chrome Chrome 115+ Edge Edge 115+ Firefox Firefox 110+ Safari Safari 16.4+
Features:
Scroll-Driven Animation Range Input Control Realistic Shadows
Code by: Jhey Jhey
License: MIT
A list of radio buttons with a rough, hand-drawn look on a paper-textured background. The selected item has a bouncing red dot and a jittery label.

Hand-Drawn Retro Radio Group

This Hand-Drawn Retro Radio Group injects personality into standard forms with a nostalgic, sketchbook aesthetic. It combines a “neo-brutalist” shadow style with subtle animations - like text jitter and a bouncing selection dot - to mimic the imperfection of hand-drawn art. The background features a CSS-generated paper texture and scanline effect, making it ideal for indie game interfaces, creative blogs, or retro-themed landing pages.

Technologies:
HTML CSS
Difficulty: Intermediate
Browser Support (as of Feb 2026):
Chrome Chrome 60+ Edge Edge 79+ Firefox Firefox 60+ Safari Safari 12+
Features:
Paper Texture Jitter Animation Bounce Effect Scanline Overlay
License: MIT

See the Pen Hand-Drawn Retro Radio Group.

Stylized paper notepad to-do list with a handwritten font and interactive checkboxes.

To-Do List

A stylized paper notepad To-Do list featuring a skew transformation and stack-effect shadows. Clicking checkboxes toggles a strikethrough style on handwritten list items via JavaScript class manipulation.

See the Pen To-Do List.

Lined Paper Background with Perforations

Lined Paper Background with Perforations

Achieve a realistic punched-paper effect using pure CSS by mastering conic-gradient to precisely mask the perforations and linear-gradient for the alternating lined background.

Love Is in the Air...

Explore the power of pure CSS for complex shapes and motion: a beautifully designed love letter featuring floating heart elements built entirely with CSS pseudo-elements and keyframe animations.

See the Pen Love Is in the Air....

Paper with Sellotaped Corners

Paper with Sellotaped Corners

Taped Sticky Notes Illustration replicates taped memo pads using CSS gradients. Creases are drawn across the .paper containers using thin crossed lines on a ::after pseudo-element. Translucent adhesive tape strips are rendered at the corners and top using opacity: 0.5 and dotted side borders to mimic torn dispenser edges. It is a highly creative vector layout done entirely without images.

See the Pen Paper with Sellotaped Corners.

Folded Paper Login Form

3D Folding Login Form is an interactive, zero-JavaScript sign-in interface. It positions :before and :after pseudo-elements on the left and right edges, skewing them with transform: skewY(-35deg) to simulate folded side flaps. On hover or input focus via CSS :focus-within, the form flattens and the side flaps unfold smoothly. It is a highly tactile, responsive CSS layout.

See the Pen Folded Paper Login Form.

Paper

Paper

CSS Binder Ring Shader compares two methods of rendering realistic binder rings on notebook sheets. The first .paper uses an intricate combination of layered linear and radial CSS gradients. The second .paper--alt simplifies this by using an inline SVG data URL pattern. While both deliver crisp, vector-based binders, the SVG approach is vastly easier to maintain and performance-friendly.

See the Pen Paper.

Pinned Card

Pinned Card

Pinned Sticky Note Vector is a pure CSS graphic of a yellow memo card held by a red pushpin. It tilts the paper card with transform: rotate(10deg) and uses linear gradients for page shading. The pin is compiled of multiple layered shapes: a metallic-look linear needle, a blurred shadow circle, and a plastic red grip molded using radial gradients on ::before and ::after wrappers.

See the Pen Pinned Card.

3D Tilting Moleskine Notebooks

3D Tilting Moleskine Notebooks

A realistic 3D Moleskine notebook component built with pure CSS and SCSS, utilizing perspective and rotateY transforms. This snippet features detailed paper textures created with linear gradients and a smooth opening animation on hover, offering a high-performance UI/UX solution for digital portfolios or creative web apps.

See the Pen 3D Tilting Moleskine Notebooks.

Styled Paper With Subtle Lines and Shadow

Styled Paper With Subtle Lines and Shadow

Modern CSS Lined Paper showcases a robust notepad layout built with the modern lh (line-height) CSS unit. By sizing repeating gradients to exactly 1lh, the background ruled lines scale flawlessly with font changes without text-drifting. It uses layered linear gradients to render the red vertical margin and the header mask. It is a highly responsive, standards-compliant typography layout.

CSS Apple Crumble Recipe

CSS Apple Crumble Recipe

Torn Paper Recipe Card simulates a handwritten recipe sheet taped onto a wooden surface. Its core feature is a massive, multi-point clip-path polygon that carves the container’s outer bounds into a jagged, torn-edge shape. Behind the text, a repeating-linear-gradient draws realistic notebook lines, while pseudo-elements model slanted yellow strips of sticky tape.

See the Pen CSS Apple Crumble Recipe.

CSS Notepad Paper

CSS Notepad Paper

Ruled Notebook Article Sheet builds a realistic document canvas shaped like notepad paper. A repeating repeating-linear-gradient is sized to a 28px unit to match a matching line-height: 28px on the body text. A double-styled margin border is set using the :after pseudo-element, while a solid :before block masks the very top row. It is a clean and lightweight typography grid layout.

See the Pen CSS Notepad Paper.

CSS Striped Paper

CSS Striped Paper

Stacked Paper Sheet Layout crafts a ruled paper writing canvas sitting on a messy stack of sheets. It relies on a CSS linear-gradient with relative em stops to draw repeating blue-grey lines that match text scaling. To mimic depth, two absolute pseudo-elements, rotated 2deg and -2deg respectively, sit underneath the parent container. It is a highly performant and responsive layout.

See the Pen CSS Striped Paper.

Folding Paper CSS3 Animation

3D Accordion Paper Fold replicates a tri-fold paper brochure using pure CSS. It assigns a centralized perspective: 800px to a parent container, then splits content into three sections. On hover, CSS rotateX transforms bend the sheets along adjusted transform-origin edges, while deep box-shadow overlays simulate realistic crevice lighting. It is a highly clean and tactile 3D layout.

See the Pen Folding Paper CSS3 Animation.

CSS3 Paper Effect

CSS3 Paper Effect

Ruled Calligraphy Page Layout uses CSS grid styling to build a realistic lined paper sheet. A repeating linear-gradient is sized to 1.2rem to match a matching line-height: 1.2rem on paragraph blocks, ensuring text aligns neatly on the printed lines. An absolute .marge div draws the traditional red margin line. It is a lightweight, clean demonstration of typography grid-locking.

See the Pen CSS3 Paper Effect.

CSS3 Paper-Edge Effect

Flipped Corner Card Effect creates a minimalist, square badge with folded corners at the top-left and bottom-right. It achieves this without extra HTML elements, relying instead on ::before and ::after pseudo-elements. These blocks use massive transparent borders to render sharp triangles, which are then rotated 135deg to overlap and mask the box edges. It is a highly creative vector hack.

CSS Stacked Paper Effect

CSS Stacked Paper Effect simulates a layered, disorganized stack of parchment sheets using generated content. It positions ::before and ::after pseudo-elements behind the main .letter container, rotating them slightly with CSS transform to mimic a messy pile. On hover, the rotations transition to 0deg, aligning the stack. An inset box-shadow is used to give the papers a weathered look.

See the Pen CSS Stacked Paper Effect.

Pure CSS Paper Lift Effect

Lifted Corner Shadow Effect is a pure CSS illustration mimicking a paper sheet raised at the corners. It relies on ::before and ::after pseudo-elements positioned under the card with a z-index: -1. Skewing and rotating these elements by 5deg paired with blurred box-shadow values creates the 3D depth. On hover, transitions adjust the offsets, simulating a page being pressed flat.

See the Pen Pure CSS Paper Lift Effect.

Paper Textarea

Paper Textarea

Paper Textarea Sheet crafts an editable ruled notebook page without JavaScript. It overlays a transparent <textarea> on a .paper-content container. The paper lines are generated via a CSS linear-gradient, matching the input’s line-height: 30px exactly. Binder holes are rendered using a repeating radial-gradient. It is a lightweight, purely visual typography technique.

See the Pen Paper Textarea.

CSS-Only Letter-Like Form with Inline Fields

Letter Form with Inline Fields is a pure CSS interactive form styled like ruled notebook paper. Instead of input tags, it uses inline <span> elements with contenteditable to allow typing directly on the paper lines. The ruled background is drawn using a CSS linear-gradient, while placeholders are handled via :empty:before rules pulling the data-placeholder attribute. It is highly accessible.

Lifted Paper Strips (Hover Effect)

Lifted Corner Ticket Shadows uses skew transforms and pseudo-elements to simulate curled paper edges. The .shadow:before pseudo-element sits behind the container with a rotating transform: rotate(4deg) and shadow offsets to create a 3D lifted-corner illusion, which flattens on hover. Simulated ticket holes are drawn using matching inset colors. It is a simple, lightweight layout hack.

CSS Paper Works

CSS Paper Effects and Folds showcases six distinct paper mockup techniques using pure CSS. It simulates lined sheets via repeating-linear-gradient, realistic page lifts using rotated shadow pseudoelements, and stacked papers through layered shadows. The standout feature is a 3D accordion folding effect built with nested 3D transforms. It is a highly performant, visual-only layout gallery.

See the Pen CSS Paper Works.

Paper

Paper

Editable Notepad Sheet builds a realistic, interactive writing pad without complex scripts. It applies contenteditable="true" directly to a div element, turning it into a user-editable text canvas. Ruled lines are drawn using a CSS repeating-linear-gradient, while a line-height: 32px keeps the typography aligned to each background stripe. It is highly clean and lightweight.

See the Pen Paper.

Frequently Asked Questions

Why utilize native CSS gradients and filters for paper textures and note lines instead of importing background image assets?

Native CSS patterns generated via repeating-linear-gradient and SVG grain filters scale mathematically to any resolution with zero bandwidth overhead. Background image assets introduce network latency, image scaling artifacts, and layout repaint spikes during dynamic viewport container resizes.

How can we maintain text accessibility (A11y) inside paper-folded layouts or lined-notebook containers?

Grid notebook lines or paper textures can reduce contrast and conflict with typography contours. To satisfy WCAG guidelines, ensure your line backgrounds are styled with low-opacity alpha values, maintain a clear contrast ratio (at least 4.5:1 using oklch()), and utilize the background-clip: content-box property to keep line overlays away from the active text.

Why do multi-layered shadow overlays on paper cards cause scroll stuttering, and how do we optimize this?

Stacking multiple high-blur box-shadow layers to simulate physical light decay forces the browser to run heavy, continuous Gaussian blur repaints on scroll. To protect your INP score, isolate the shadow calculations onto a pseudo-element like :before, and promote it to its own GPU layer using will-change: transform.

How do you mathematically construct clean 3D origami folds using CSS coordinates?

Combine transform-style: preserve-3d with the perspective property on the parent, then map individual child elements into overlapping polygon sections using clip-path: polygon(). Rotate each section along a calculated transform-origin axis to create physically aligned, crisp creases that react dynamically to cursor movements.

What is the cleanest fallback strategy for systems that lack advanced CSS clip-path or filter support?

Implement progressive enhancement using an @supports (clip-path: polygon(0 0, 100% 0, 0 100%)) query to isolate the 3D origami rules. For older engines or low-power profiles, gracefully degrade the paper layouts to a flat contrasting card with simple thin borders and subtle solid box shadows.