https://gfazioli.github.io/mantine-border-animate/
Mantine component offering four border animation variants (beam, glow, gradient, pulse) with customizable colors and full animation control, perfect for creating dynamic, visually engaging UI elements.
https://gfazioli.github.io/mantine-border-animate/
animate beam border-animated border-animation border-beam component effects mantine-ui nextjs reactjs typescript
Last synced: 6 months ago
JSON representation
Mantine component offering four border animation variants (beam, glow, gradient, pulse) with customizable colors and full animation control, perfect for creating dynamic, visually engaging UI elements.
- Host: GitHub
- URL: https://gfazioli.github.io/mantine-border-animate/
- Owner: gfazioli
- License: mit
- Created: 2025-12-02T17:51:27.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-12-05T17:40:28.000Z (7 months ago)
- Last Synced: 2025-12-07T23:39:24.832Z (7 months ago)
- Topics: animate, beam, border-animated, border-animation, border-beam, component, effects, mantine-ui, nextjs, reactjs, typescript
- Language: TypeScript
- Homepage: https://gfazioli.github.io/mantine-border-animate
- Size: 4.64 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-mantine - Mantine Border Animate - A Mantine component for animated border effects with four variants (beam, glow, gradient, pulse), customizable colors, and full animation control. Ideal for creating eye-catching, dynamically styled UI elements with smooth CSS animations. (Libraries)
README
# Mantine Border Animate Component

[](https://www.npmjs.com/package/@gfazioli/mantine-border-animate)
[](https://www.npmjs.com/package/@gfazioli/mantine-border-animate)
[](https://www.npmjs.com/package/@gfazioli/mantine-border-animate)

## Overview
This component is created on top of the [Mantine](https://mantine.dev/) library.
[Mantine BorderAnimate](https://gfazioli.github.io/mantine-border-animate) provides a flexible wrapper that turns any Mantine or plain React element into a visually striking component with animated borders. Designed for both aesthetics and performance, it uses CSS animations to deliver smooth 60fps effects and exposes controls to tailor the look and behavior: you can show/hide the border, keep it static or continuously animated, and adjust parameters like size, radius, border width, blur, duration, and color transitions.
The component includes four distinct variants—beam (a traveling glow along the perimeter with adjustable anchor and duration), gradient (a rotating conic gradient between two colors with optional blur), glow (a rhythmic pulsation with tunable blur and opacity), and pulse (a subtle expand‑and‑fade “breathing” effect).
Advanced visual setups are supported through masking and layering: withMask clips the effect to the border, while disabling it and using zIndex allows soft background glows behind content; anchor positioning further refines inner vs outer illumination. Integration is straightforward via provided stylesheet imports, and examples demonstrate wrapping common Mantine components like Paper, Stack, Title, and Flex to achieve eye‑catching, controllable borders across a wide range of UI elements.
> [!note]
>
> → [Demo and Documentation](https://gfazioli.github.io/mantine-border-animate/) → [Youtube Video](https://www.youtube.com/playlist?list=PL85tTROKkZrWyqCcmNCdWajpx05-cTal4) → [More Mantine Components](https://mantine-extensions.vercel.app/)
## Installation
```sh
npm install @gfazioli/mantine-border-animate
```
or
```sh
yarn add @gfazioli/mantine-border-animate
```
After installation import package styles at the root of your application:
```tsx
import '@gfazioli/mantine-border-animate/styles.css';
```
## Usage
```tsx
import { Stack, Title } from '@mantine/core';
import { BorderAnimate } from '@gfazioli/mantine-border-animate';
function Demo() {
return (
This is a title
This is a paragraph inside the BorderAnimate component.
);
}
```
---
[](https://www.star-history.com/#gfazioli/mantine-border-animate&Timeline)