Crystal Refraction
🟢 CSS OnlyRefracted light leak spectrums shifting slowly like a rotating diamond prism in a dark room.
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-below-preview
Interactive Settings
Medium Rectangle Block
Slot ID: ca-pub-detail-after-customization
Quick Copy Actions
Download File Packages
Keyboard Shortcuts
Responsive Horizontal Leaderboard
Slot ID: ca-pub-detail-before-related
More in Glass
Crystal Refraction - Glassmorphism Backdrop CSS Glass background for React & Tailwind
Integrate the Crystal Refraction directly into your website. This asset is rendered using advanced CSS filters and backdrop blurs. It is optimized for zero layout-shifts and runs with high-performance hardware-accelerated processing.
⚡ Performance Specifications
- Render Mode: CSS-ONLY (Glassmorphism Backdrop CSS)
- Fluidity: Locked at 60fps dynamic loop
- Bundle Footprint: Zero external NPM dependencies
- SEO Indexing status: 100% Crawlable static semantic HTML
🛠️ Integration Capabilities
Our templates expose inline design tokens like --color-1 and --color-2 for infinite color palettes. This template is designed to fit inside hero elements, full-screen landing pages, and interactive presentation cards.
Technical Code Reference & Syntaxes for Googlebot & Crawlers
The snippets below display the direct, unminified source code utilized for rendering this background.
HTML & Inline CSS Snippet (Vanilla)
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crystal Refraction</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #09090b;
}
:root {
--speed: 12s;
}
.crystal-container {
position: relative;
width: 100%;
height: 100%;
background: #020204;
overflow: hidden;
}
.refraction-cone {
position: absolute;
width: 150%;
height: 150%;
top: -25%; left: -25%;
background: conic-gradient(
from 180deg,
transparent 0%,
rgba(124, 92, 255, 0.15) 15%,
rgba(24, 197, 255, 0.15) 30%,
rgba(239, 68, 68, 0.15) 45%,
transparent 60%
);
filter: blur(40px);
}
.rc-1 { animation: prism-spin var(--speed) infinite linear; }
.rc-2 {
background: conic-gradient(
from 0deg,
transparent 0%,
rgba(24, 197, 255, 0.1) 20%,
rgba(124, 92, 255, 0.1) 40%,
transparent 60%
);
filter: blur(60px);
animation: prism-spin-rev calc(var(--speed) * 1.5) infinite linear;
}
@keyframes prism-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes prism-spin-rev {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}
</style>
</head>
<body>
<div class="crystal-container">
<div class="refraction-cone rc-1"></div>
<div class="refraction-cone rc-2"></div>
</div>
</body>
</html>React Component Wrapper (TSX)
import React from 'react';
export default function CrystalRefractionBackground() {
return (
<div
style={{ width: '100%', height: '100%', position: 'relative', overflow: 'hidden' }}
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 12s;
}
.crystal-container {
position: relative;
width: 100%;
height: 100%;
background: #020204;
overflow: hidden;
}
.refraction-cone {
position: absolute;
width: 150%;
height: 150%;
top: -25%; left: -25%;
background: conic-gradient(
from 180deg,
transparent 0%,
rgba(124, 92, 255, 0.15) 15%,
rgba(24, 197, 255, 0.15) 30%,
rgba(239, 68, 68, 0.15) 45%,
transparent 60%
);
filter: blur(40px);
}
.rc-1 { animation: prism-spin var(--speed) infinite linear; }
.rc-2 {
background: conic-gradient(
from 0deg,
transparent 0%,
rgba(24, 197, 255, 0.1) 20%,
rgba(124, 92, 255, 0.1) 40%,
transparent 60%
);
filter: blur(60px);
animation: prism-spin-rev calc(var(--speed) * 1.5) infinite linear;
}
@keyframes prism-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes prism-spin-rev {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}
` }} />
{/* HTML Structure */}
<div
style={{ width: '100%', height: '100%' }}
dangerouslySetInnerHTML={{ __html: `
<div class="crystal-container">
<div class="refraction-cone rc-1"></div>
<div class="refraction-cone rc-2"></div>
</div>
` }}
/>
</div>
);
}Next.js App Router Component (use client)
'use client';
import React from 'react';
export default function CrystalRefractionBackground() {
return (
<div
className="w-full h-full relative overflow-hidden"
>
<style dangerouslySetInnerHTML={{ __html: `
:root {
--speed: 12s;
}
.crystal-container {
position: relative;
width: 100%;
height: 100%;
background: #020204;
overflow: hidden;
}
.refraction-cone {
position: absolute;
width: 150%;
height: 150%;
top: -25%; left: -25%;
background: conic-gradient(
from 180deg,
transparent 0%,
rgba(124, 92, 255, 0.15) 15%,
rgba(24, 197, 255, 0.15) 30%,
rgba(239, 68, 68, 0.15) 45%,
transparent 60%
);
filter: blur(40px);
}
.rc-1 { animation: prism-spin var(--speed) infinite linear; }
.rc-2 {
background: conic-gradient(
from 0deg,
transparent 0%,
rgba(24, 197, 255, 0.1) 20%,
rgba(124, 92, 255, 0.1) 40%,
transparent 60%
);
filter: blur(60px);
animation: prism-spin-rev calc(var(--speed) * 1.5) infinite linear;
}
@keyframes prism-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes prism-spin-rev {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}
` }} />
{/* HTML Structure */}
<div
className="w-full h-full"
dangerouslySetInnerHTML={{ __html: `
<div class="crystal-container">
<div class="refraction-cone rc-1"></div>
<div class="refraction-cone rc-2"></div>
</div>
` }}
/>
</div>
);
}Raw CSS Stylesheet Snippet
:root {
--speed: 12s;
}
.crystal-container {
position: relative;
width: 100%;
height: 100%;
background: #020204;
overflow: hidden;
}
.refraction-cone {
position: absolute;
width: 150%;
height: 150%;
top: -25%; left: -25%;
background: conic-gradient(
from 180deg,
transparent 0%,
rgba(124, 92, 255, 0.15) 15%,
rgba(24, 197, 255, 0.15) 30%,
rgba(239, 68, 68, 0.15) 45%,
transparent 60%
);
filter: blur(40px);
}
.rc-1 { animation: prism-spin var(--speed) infinite linear; }
.rc-2 {
background: conic-gradient(
from 0deg,
transparent 0%,
rgba(24, 197, 255, 0.1) 20%,
rgba(124, 92, 255, 0.1) 40%,
transparent 60%
);
filter: blur(60px);
animation: prism-spin-rev calc(var(--speed) * 1.5) infinite linear;
}
@keyframes prism-spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes prism-spin-rev {
0% { transform: rotate(360deg); }
100% { transform: rotate(0deg); }
}