# @gfazioli/mantine-marquee 中文文档

规范地址：https://npmcn.com/package/%40gfazioli/mantine-marquee/

版本：5\.0\.6
npm 元数据更新时间：2026-11-09T11:13:15.725Z
中文译文更新时间：2026-11-16T07:17:19.618Z
软件包许可：MIT

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40gfazioli/mantine-marquee
原文对照：https://npmcn.com/package/%40gfazioli/mantine-marquee/?lang=original
项目主页：https://gfazioli.github.io/mantine-marquee/
源码仓库：https://github.com/gfazioli/mantine-marquee

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：134 kB，23 个文件
- 模块格式：ESM + CJS
- TypeScript 类型：包内自带
- 运行依赖：0 个
- peer 依赖：react ^18\.x \|\| ^19\.x，react-dom ^18\.x \|\| ^19\.x，@mantine/core \>=9\.0\.0，@mantine/hooks \>=9\.0\.0
- 首次发布：2024-06-19T13:20:41.930Z
- 最新版本发布：2026-11-09T11:13:15.532Z
- 近 30 天下载量：11347（2026-10-17 至 2026-11-15，npm 官方下载统计）
- 已发布版本数：72（近 12 个月 33 个）

## 中文简介

曼汀元件用于无缝,GPU加速的无限相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相.

## 安装

```sh
npm install @gfazioli/mantine-marquee
```

也可以使用：`pnpm add @gfazioli/mantine-marquee`、`yarn add @gfazioli/mantine-marquee`、`bun add @gfazioli/mantine-marquee`

## README

# 曼汀玛克组件

![Mantine Marquee](https://github.com/gfazioli/mantine-marquee/blob/master/logo.jpeg)

[![NPM version](https://img.shields.io/npm/v/%40gfazioli%2Fmantine-marquee?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-marquee) [![NPM Downloads](https://img.shields.io/npm/dm/%40gfazioli%2Fmantine-marquee?style=for-the-badge)](https://www.npmjs.com/package/@gfazioli/mantine-marquee) [![NPM Downloads](https://img.shields.io/npm/dy/%40gfazioli%2Fmantine-marquee?style=for-the-badge&label=%20&color=f90)](https://www.npmjs.com/package/@gfazioli/mantine-marquee) ![NPM License](https://img.shields.io/npm/l/%40gfazioli%2Fmantine-marquee?style=for-the-badge)

* * *

  [如果此部分对您或您的团队有用,请考虑成为发起人](https://github.com/sponsors/gfazioli?o=esc)  

![mantine-marquee at a glance, refreshed daily: commits, releases, stars, issues and pull requests, a year of commit activity, the weekly rhythm, languages, latest commits and releases, contributors](https://raw.githubusercontent.com/gfazioli/gfazioli/master/glancecard/mantine-marquee.svg)  
制造的 [外观卡](https://github.com/gfazioli/glancecard) \* 每日刷新

## 概览

此组件创建于 [曼汀语Name](https://mantine.dev/) 图书馆. 这需要 **曼汀 9.x (英语)** 财务报告和审定财务报表 **反应 19**。 。 。 .

[曼汀玛克](https://gfazioli.github.io/mantine-marquee/) 是曼汀生态系统的多功能反应成分,它使任何儿童元素——卡片、盒子、文字或外观——无论是横向还是纵向的连续、无缝地滚动。 它暴露出工学道具来控制行为和表现:倒向切换方向,垂直开关轴,淡出Edges会去掉边缘(英语:`linear`, (中文(简体) ), `ellipse`, (中文(简体) ), `rect`以可配置的每轴尺寸,作为CSS口罩或用已淡出EdgeColor所绘的颜色来画出,暂停OnHover会停止悬浮和键盘焦点上的运动,以及持续时间/gap/repeat微调速度,间隔(`theme.spacing` 键、数字或任何 CSS 值,以及循环连续性。 有两个3D变体将其延伸: `isometric` 将卷轴放入倾斜为 三维空间的平面( 可调整) `tilt`, (中文(简体) ), `rotate`, (中文(简体) ), `skew`, (中文(简体) ), `perspective`),以及 `circle` 围绕旋转的 三维椭圆环(可调整的旋转木马)分配项目 `radius`, (中文(简体) ), `tilt` 财务报告和审定财务报表 `perspective`) (中文(简体) ). 组件是内建的一滴叠加 `@mantine/core` 玛克.

### 主要特点

-   任何横向或纵向反应内容的无缝循环 `orientation` 接受为核心
-   淡出边缘分出三个形状(`linear`, (中文(简体) ), `ellipse`, (中文(简体) ), `rect`),作为一个背景的 CSS 掩码或涂入任意主题或 CSS 颜色
-   `pauseOnHover` 在纯 CSS 中键盘焦点也暂停
-   响应 `gap` 财务报告和审定财务报表 `vertical`,与 `gap` 打开 `theme.spacing` 像核心一样
-   `isometric` 财务报告和审定财务报表 `circle` 3D 变体
-   带有核心的 API 样式 `root`, (中文(简体) ), `content` 财务报告和审定财务报表 `group` 选择器,加 `attributes`
-   停止为 `prefers-reduced-motion: reduce`

部件整齐地适合布局,有明显的宽度/高和曼汀相距道具,并配有专用样式表的船舶,包括一个可选的@layer导入来进行清洁的,范围化的CSS集成. 示例演示显示简单的有色相箱,有镜像水平轨,有叠叠的垂直轨迹,以及有相声和收视率的证相卡等——都展示了任意回放内容如何可以在没有自定义动画代码的情况下被活化为被打磨过的马克.

> \[!注\]
> 
> → [演示文稿和文件](https://gfazioli.github.io/mantine-marquee/) → [Youtube 视频](https://www.youtube.com/playlist?list=PL85tTROKkZrWyqCcmNCdWajpx05-cTal4) → [更多曼汀组件](https://mantine-extensions.vercel.app/)

## 安装

```sh
npm install @gfazioli/mantine-marquee
```

或者说

```sh
yarn add @gfazioli/mantine-marquee
```

在应用程序根部安装导入包样式后:

```tsx
import '@gfazioli/mantine-marquee/styles.css';
```

## 使用量

```tsx
import { Marquee } from '@gfazioli/mantine-marquee';

function Demo() {
  function BoxComponent({ children, ...props }: { children: ReactNode; [key: string]: any }) {
    return (
      <Box {...props} p="md" w="200px" c="white" style={{ borderRadius: '8px' }}>
        {children}
      </Box>
    );
  }

  return (
    <Marquee {...props} w={560} h={300}>
      <BoxComponent bg="red">Hello World #1</BoxComponent>
      <BoxComponent bg="cyan">Hope you like it #2</BoxComponent>
      <BoxComponent bg="blue">Have a nice day #3</BoxComponent>
      <BoxComponent bg="lime">Goodbye #4</BoxComponent>
    </Marquee>
  );
}
```

## 发起人

  [如果此部分对您或您的团队有用,请考虑成为发起人](https://github.com/sponsors/gfazioli?o=esc)  

你的支持帮助了我:

-   积极维护项目,及时修复错误并更新安全信息
-   添加新特性, 提高性能,并完善开发者的经验
-   扩大测试范围和文件,以更顺利地采用
-   确保长期可持续性而不依赖临时自由时间
-   优先处理最重要的社区请求和路线图项目

开放源码的繁荣,如果受益的人能够回报——即使每月的小额捐款也会产生真正的变化。 赞助有助于覆盖维护时间、基础设施和无数使项目保持健康的无形任务.

你的帮助真的很重要.

💚 [成为提案国](https://github.com/sponsors/gfazioli?o=esc) 今天,帮助我保持这一项目的可靠性,更新,并为每个人成长.

* * *

[https://github.com/user-attachments/assets/285cdda3-cd62-46a3-b028-816c34217530 互联网档案馆的存檔,存档日期2013-12-20](https://github.com/user-attachments/assets/285cdda3-cd62-46a3-b028-816c34217530)

## 常见问题

### @gfazioli/mantine-marquee 是什么？

曼汀元件用于无缝,GPU加速的无限相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相接相\.

### 如何安装 @gfazioli/mantine-marquee？

在项目目录运行 npm install @gfazioli/mantine-marquee，或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖：react（^18\.x \|\| ^19\.x）、react-dom（^18\.x \|\| ^19\.x）、@mantine/core（\>=9\.0\.0）、@mantine/hooks（\>=9\.0\.0）。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖，Yarn 需要手动安装。

### @gfazioli/mantine-marquee 支持 TypeScript 吗？

支持。包内自带 TypeScript 类型声明（package\.json 声明了 types 入口），安装后即可获得类型提示，无需再安装 @types 包。

### @gfazioli/mantine-marquee 支持 ESM 还是 CommonJS？

同时提供 ES Module 与 CommonJS 入口，import 和 require\(\) 都可以使用，打包工具会自动选择合适的版本。

### @gfazioli/mantine-marquee 可以商用吗？

@gfazioli/mantine-marquee 使用 MIT 许可。宽松许可：允许商业使用、修改和再分发，通常只需在分发时保留原版权与许可声明。以上为概括，不构成法律意见，请以许可原文为准。

### @gfazioli/mantine-marquee 的下载量有多少？

根据 npm 官方下载统计，@gfazioli/mantine-marquee 在 2026/10/17 – 2026/11/15 这 30 天内被下载 11,347 次，日均约 378 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入，适合横向比较热度，不能直接等同于使用人数。

### @gfazioli/mantine-marquee 还在维护吗？

最新版本 5\.0\.6 发布于 2026/11/09（6 天前）；至今共发布 72 个版本，其中过去 12 个月发布了 33 个；首次发布于 2024/06/19。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

