--- title: "Mantine Scene - Cinematic Backgrounds for Your React Apps" author: "Giovambattista Fazioli" published: "2026-09-04T09:25:06.173Z" updated: "2026-09-04T09:25:06.173Z" url: "https://zyvop.com/mantine-scene-cinematic-backgrounds-for-your-react-apps-e0nae" canonical: "https://dev.to/undolog/mantine-scene-cinematic-backgrounds-for-your-react-apps-32m4" tags: ["react","nextjs","reactjsdevelopment","TypeScript"] --- # Mantine Scene - Cinematic Backgrounds for Your React Apps ![Cover image]() > Layer gradients, glowing blobs, star fields, auroras, and more into rich, composable decorative backgrounds — all powered by Mantine. ## Introduction **Mantine Scene** is a brand-new composable background component for React that lets you build atmospheric, animated backgrounds by stacking visual layers. Think of it as a stage director for your UI — you compose the mood by combining gradients, glow effects, dot grids, star fields, snowfall, auroras, and more, all with first-class Mantine theme integration, responsive props, and accessibility baked in from day one. This 1.0.0 release ships with **10 composable sub-components**, full interactive mouse-tracking support, GPU-accelerated animations, and a complete documentation site with live configurators for every layer type. ## What's New in 1.0.0 ### The Scene Component The root `Scene` component acts as a container for all visual layers. It supports fullscreen mode, interactive mouse tracking, and respects `prefers-reduced-motion` out of the box. ```javascript import { Scene } from '@gfazioli/mantine-scene'; function HeroBackground() {return ( );} ``` Enter fullscreen mode Exit fullscreen mode **Root Props:** | Prop | Type | Default | Description | | --- | --- | --- | --- | | `fullscreen` | `boolean` | `false` | Cover the entire viewport with `position: fixed` | | `interactive` | `boolean` | `false` | Enable mouse tracking for compatible sub-components | | `interactiveEasing` | `number` | `0.12` | Smoothness of cursor tracking (0–1) | | `reducedMotion` | \`'auto' \\ | 'always' \\ | 'never'\` | | `zIndex` | `number` | `0` | z-index in fullscreen mode | ### 10 Composable Sub-Components Every sub-component is a visual layer you can freely compose. Layer order follows DOM order — the last child renders on top. * * * #### ✨ Scene.Gradient ![Gradient]() Radial, linear, or conic gradients with optional rotate or pulse animation. Supports interactive mouse tracking for radial/conic types. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.Glow ![Glow]() Floating, animated glow blobs. Choose between `float`, `pulse`, or `breathe` animation styles. Supports **responsive** `size` **and** `blur` props and interactive mouse tracking. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.DotGrid ![DotGrid]() Repeating dot patterns with optional stagger (honeycomb) layout, fade masks, and twinkle animation. Supports **responsive** `spacing`. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.Mesh ![Mesh]() Multi-stop radial gradient overlay simulating a mesh gradient. Supports hue-rotate animation and blend modes. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.Noise ![Noise]() SVG-based film grain texture. Add subtle texture to any background with configurable grain, seed, and color tint. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.StarField ![StarField]() CSS-only star field with deterministic PRNG positioning and twinkle animation across 3 staggered layers. Supports **responsive** `count`. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.StarWarp ![StarWarp]() Hyperspace warp-speed effect with configurable focal point, direction, and streak trails. Supports **responsive** `count` and interactive mouse tracking for the focal point. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.ShootingStar ![ShootingStar]() Animated shooting star trails at configurable angles and intervals. Multiple lanes with randomized timing for a natural feel. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.Snow ![Snow]() Falling snowflakes with horizontal drift and wind control. Supports **responsive** `count` for performance-conscious responsive designs. ```javascript ``` Enter fullscreen mode Exit fullscreen mode * * * #### ✨ Scene.Aurora ![Aurora]() Shimmering aurora borealis bands with wave animation. Configurable band count, position, and colors. ```javascript ``` Enter fullscreen mode Exit fullscreen mode ## Key Features ### 🎨 Full Mantine Theme Integration Every color prop accepts `MantineColor` values, so your backgrounds stay consistent with your theme. Shade overrides are available on components like `Glow` and `DotGrid`. ### 📱 Responsive Props Key numeric props support Mantine's responsive object syntax. This means you can adjust visual density based on breakpoint — fewer stars on mobile, larger glows on desktop: ```javascript ``` Enter fullscreen mode Exit fullscreen mode Responsive props are available on: `Glow` (size, blur), `DotGrid` (spacing), `StarField` (count), `StarWarp` (count), `Snow` (count). ### 🖱️ Interactive Mouse Tracking Set `interactive` on the root `Scene` to enable cursor-driven effects: - **Glow** — blob position follows the mouse - **Gradient** — radial/conic center follows the mouse - **StarWarp** — focal point tracks the mouse The `interactiveEasing` prop controls how smoothly elements follow the cursor (0 = sluggish, 1 = instant). Components gracefully fall back to their default positions when the mouse leaves. ### ♿ Accessibility - The root component renders with `aria-hidden="true"` — it's purely decorative - `reducedMotion="auto"` respects `prefers-reduced-motion` by default - Set `reducedMotion="always"` to disable all animations, or `"never"` to force them on ### ⚡ Performance - All animations use GPU-accelerated CSS (`transform`, `opacity`) — no JavaScript animation loops - Deterministic PRNG (seeded) for StarField, StarWarp, ShootingStar, and Snow ensures reproducible layouts without runtime randomness - StarWarp caps at 200 elements; Snow recommends ~80 max for smooth performance - Responsive `count` props let you reduce particle counts on lower-powered devices ### 🎛️ Styles API Full Mantine Styles API support. Override styles for any part of any sub-component using `classNames`, `styles`, or `unstyled` props. CSS variables are exposed for all dynamic values (e.g., `--scene-glow-size`, `--scene-aurora-duration`). ## Putting It All Together Here's a complete example combining multiple layers into a rich hero background: ```javascript import { Scene } from '@gfazioli/mantine-scene'; function CosmicHero() {return ( {/* Base gradient */} {/* Mesh overlay */} {/* Floating glows */} {/* Stars */} {/* Subtle texture */} );} ``` Enter fullscreen mode Exit fullscreen mode ## Getting Started ![Combined]() ### Installation ```bash npm install @gfazioli/mantine-scene # or yarn add @gfazioli/mantine-scene ``` Enter fullscreen mode Exit fullscreen mode ### Import Styles Add the styles import to your app entry point: ```javascript import '@gfazioli/mantine-scene/styles.css'; ``` Enter fullscreen mode Exit fullscreen mode Or use the `@layer` variant for CSS cascade control: ```javascript import '@gfazioli/mantine-scene/styles.layer.css'; ``` Enter fullscreen mode Exit fullscreen mode ### Requirements - React 18 or 19 - @mantine/core >= 7.0.0 - @mantine/hooks >= 7.0.0 ## Links - 📦 [npm package]() - 📖 [Documentation & Live Demos]() - 🔗 [GitHub Repository]() - 🌐 [Mantine Extensions Hub]()