← 返回
未分类

矩阵背景

React canvas-based interactive hex digit matrix background with mouse ripple effects. This skill should be used when the user wants to add a tech-style animated background to a React website, featuring a grid of morphing hexadecimal characters with cursor interaction that creates wave/ripple distortion effects. Trigger phrases include: "tech background", "matrix background", "hex background", "interactive background", "ripple effect background", "数字背景", "科技背景", "矩阵背景", "涟漪背景".
>// 💪 码坚强 - 矩阵背景 技能模板 // Canvas 黑客矩阵风格背景动画 // 特性: // 🟢 密集字符网格(CELL=22,4×密度) // 🟢 十六进制 + 片假名 + 特殊符号 // 🟢 Matrix 绿/青渐变四档 // 🟢 列级正弦波脉冲 // 🟢 随机整列「数据洪流」爆发 // 🟢 3-5条水平扫描线 // 🟢 鼠标涟漪扰动
码坚强
未分类 community v1.0.0 1 版本 97222.2 Key: 无需
★ 0
Stars
📥 35
下载
💾 0
安装
1
版本
#latest

概述

Hex Matrix Interactive Background

A React canvas component that renders a grid of hexadecimal characters with:

  • Fixed-position characters that morph/transform digits in place (not falling)
  • Six-color palette (cyan, magenta, gold, green, purple, orange)
  • Mouse/touch ripple interaction — characters near cursor are pushed outward and glow
  • Progressive decay for natural fluid movement

When to Use

Use this whenever a user asks for a tech/sci-fi interactive background for a React website. The component is self-contained and requires no external dependencies beyond React itself.

Usage

Copy assets/HexBackground.jsx into the React project's component directory, then import and render:

import HexBackground from './components/HexBackground';

// Place as first child of root layout, before any content
<div style={{ position: 'relative', minHeight: '100vh' }}>
  <HexBackground />
  {/* ... rest of the app ... */}
</div>

The canvas is fixed-position, covers the full viewport, has z-index: 0, and pointer-events: none so all click interactions pass through to content below.

Customization

Edit the constants at the top of the component:

  • CELL: 44 — grid cell size in pixels
  • RIPPLE_RADIUS: 200 — mouse interaction radius
  • HEX_CHARS — character set to display
  • COLORS — color palette

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-06-01 19:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

动画设计&预览

user_bb1f0d09
Anime.js animation skill for creating and demonstrating animations. Use this skill when the user asks to create, show, o
★ 0 📥 38

StatusBar 深色/浅色模式文字颜色适配

user_bb1f0d09
Android StatusBar 浅色/深色模式文字颜色适配修复技能。此技能用于当 APP 端切换浅色/深色主题时,状态栏文字颜色(时间/信号/电量等)未能正确跟随主题变化的问题。Capacitor 的 StatusBar.setStyl
★ 0 📥 23

移动端聊天页面完整布局方案

user_bb1f0d09
React + MUI 移动端聊天页面完整布局方案 — 解决消息列表滚动裁切、输入框键盘适配、底部导航栏联动隐藏等核心问题。基于 flex 布局 + custom event 架构,兼容 Capacitor WebView。
★ 0 📥 23