跳到正文

正在自动登录…

← 返回项目列表

nilbuild/page-mascot

网页互动

一个交互式网页吉祥物组件,能跟随光标移动并注视,点击时会有眨眼等反应。适用于为网站添加趣味互动元素,开发者可快速集成或自定义绘制角色。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 16:40:35 · 查看原文

普通Python库与框架
累计 Stars
1,175
当前热度
已过新项目期
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/14 16:40:35

使用方式

通过 npm 安装,以 React 组件形式使用,需提供方向图和反应图两个图片路径。

查看 README 依据
<img src=".github/fox.png" width="160" alt=""> # page-mascot An interactive character that watches the cursor and blinks when you poke it. **[See the fifty-two &rarr;](https://koboyo.com/page-mascot)** ## Install ```bash npm i page-mascot ``` ## Use existing mascots Pick a character on the [demo page](https://koboyo.com/page-mascot) and download its two sheets into `public/mascots`, then point the component at them: ```tsx import { Mascot } from 'page-mascot' <Mascot directions="/mascots/fox-directions.webp" reactions="/mascots/fox-reactions.webp" /> ```
部署要求

需要 Node.js 环境以使用 npm 安装,并需准备两个精灵图(方向图和反应图)。

查看 README 依据
<img src=".github/fox.png" width="160" alt=""> # page-mascot An interactive character that watches the cursor and blinks when you poke it. **[See the fifty-two &rarr;](https://koboyo.com/page-mascot)** ## Install ```bash npm i page-mascot ``` ## Use existing mascots Pick a character on the [demo page](https://koboyo.com/page-mascot) and download its two sheets into `public/mascots`, then point the component at them: ```tsx import { Mascot } from 'page-mascot' <Mascot directions="/mascots/fox-directions.webp" reactions="/mascots/fox-reactions.webp" /> ```
已知限制

没有精细指针时跟踪会关闭,且点击挤压效果尊重 prefers-reduced-motion 设置。

查看 README 依据
| `label` | `'mascot'` | what a screen reader calls it | | `className` | | | Tracking switches off without a fine pointer, and the click squash honours `prefers-reduced-motion`. ## How it works Each character is two 3×3 sprite sheets: nine head directions, and nine expressions. ![the two sheets that make up one character](.github/sheets.png) The pointer's angle picks a cell on the directions sheet, with a dead zone so the head settles when the cursor is close. A click shows a cell from the reactions sheet for half a second.

README

正在加载 README…

收录信息

仓库创建时间
2026/9/14 14:55:59
首次达标收录
2026/10/9 12:20:58
统计更新时间
2026/10/22 18:40:36

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.4 / 5

新颖度
3.3
实用价值
3.2
成熟度
4.0
实质含量
3.4

由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:55:46 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/9/15 18:07:44
许可证标识
MIT
Fork 数
125
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目