kliping.pro
  • Docs
  • Explore
  • Builder
  • Directory
  • Colors
  • Typeset
Saved
Docs
  • Sections13
  • Installation5
  • Dark Mode4
  • Forms3
  • Registry6
  • Utilities2
  • More10
  • Components137
  • Accordion
  • Action Bar
  • AI Chat
  • AI Thread List
  • Alert
  • Alert Dialog
  • Angle Slider
  • Animated Grid Pattern
  • Aspect Ratio
  • Attachment
  • Avatar
  • Avatar Group
  • Badge
  • Badge Overflow
  • Banner
  • Border Beam
  • Breadcrumb
  • Bubble
  • Button
  • Button Group
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Checkbox Group
  • Chip
  • Circular Progress
  • Client Only
  • Collapsible
  • Color Picker
  • Color Swatch
  • Combobox
  • Combobox Advanced
  • Command
  • Compare Slider
  • Composition
  • Context Menu
  • Cropper
  • Data Grid
  • Data Table
  • Data Table Advanced
  • Date Picker
  • Dialog
  • Direction Provider
  • Dot Pattern
  • Drawer
  • Dropdown Menu
  • Editable
  • Empty
  • Field
  • File Upload
  • Form
  • FPS
  • Gauge
  • Hitbox
  • Hover Card
  • Input
  • Input Group
  • Input OTP
  • Item
  • Kanban
  • Kbd
  • Kbd Advanced
  • Key Value
  • Label
  • List
  • Listbox
  • Logos
  • Map
  • Marker
  • Marquee
  • Mask Input
  • Masonry
  • Media Player
  • Mention
  • Menubar
  • Message
  • Message Scroller
  • Native Select
  • Navigation Menu
  • Number Field
  • Pagination
  • Particles
  • Pending
  • Phone Input
  • Pin Input
  • Popover
  • Portal
  • Presence
  • Progress
  • QR Code
  • Questionnaire
  • Radio Group
  • Range Calendar
  • Rating
  • Relative Time Card
  • Resizable
  • Responsive Dialog
  • Scroll Area
  • Scroll Spy
  • Scroller
  • Segmented Input
  • Select
  • Selection Toolbar
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Software Purchase Card
  • Sonner
  • Sortable
  • Speed Dial
  • Spinner
  • Stack
  • Stat
  • Status
  • Stepper
  • Stepper Advanced
  • Swap
  • Switch
  • Table
  • Tabs
  • Tags Input
  • Tags Input Advanced
  • Textarea
  • Time Picker
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tour
  • Typography
  • Visually Hidden
  • Visually Hidden Input
  1. Docs
  2. Components
  3. Animated Grid Pattern

Animated Grid Pattern

PreviousNext

Latar pola kisi dengan kotak yang menyala dan meredup bergantian.

Animated Grid Pattern

Installation ​

pnpm dlx kliping@latest add animated-grid-pattern

Usage ​

Letakkan di dalam wadah relative dengan overflow-hidden; polanya mengisi wadah itu. Kotak yang menyala dipilih acak dan berganti tiap duration detik. Pakai mask-* untuk memudarkan tepinya, dan skew-y-* untuk kesan miring.

vue
<script setup lang="ts">
import { AnimatedGridPattern } from '@/components/ui/animated-grid-pattern'
</script>

<template>
  <div class="relative h-72 overflow-hidden">
    <AnimatedGridPattern :num-squares="30" :max-opacity="0.1" />
  </div>
</template>

Requirements ​

Semua dipasang otomatis oleh kliping add; tabel ini untuk Anda yang memasang manual atau memeriksa project.

RequirementValue
ProjectVue 3.5+, Tailwind CSS v4, alias @ — disiapkan kliping init
Filescomponents/ui/animated-grid-pattern/animated-grid-pattern.vue
components/ui/animated-grid-pattern/index.ts

API Reference ​

PropTypeDefaultDescription
width?number40The width of each grid cell.
height?number40The height of each grid cell.
x?number-1The horizontal offset of the whole pattern.
y?number-1The vertical offset of the whole pattern.
strokeDasharray?string | number0The dash pattern for the grid lines.
numSquares?number50How many squares light up in turn.
maxOpacity?number0.5The maximum opacity of each square.
duration?number4The duration of one flash, in seconds.
Data attributeValue
[data-slot]"animated-grid-pattern"

CSS Variables ​

Variabel khusus komponen ini — bisa ditimpa lewat style atau CSS Anda:

VariableValue
--grid-square-opacitydihitung saat runtime

Credits ​

Berasal dari Magic UI (MIT, Copyright (c) Magic UI). Rantai lengkapnya di Credits.

PreviousAngle SliderNext Aspect Ratio

On This Page

InstallationUsageRequirementsAPI ReferenceCSS VariablesCredits

© 2026 Kliping. Free components are open source under the MIT License.

LicenseCreditsRoadmap