@llds/bg-dots
v0.1.0
Published
A lightweight background dot animation using PixiJS and Simplex Noise.
Maintainers
Readme
Setup
npm i @llds/bg-dotspnpm add @llds/bg-dotsUsage
<script setup lang="ts">
import { useBackgroundDots } from '@llds/bg-dots'
import { onMounted, ref } from 'vue'
const bg = ref<HTMLDivElement | null>(null)
onMounted(() => {
if (bg.value) {
useBackgroundDots(bg.value, false)
}
})
</script>
<template>
<div id="bg-dots__project">
<div ref="bg" class="h-full w-full pointer-events-none fixed" />
<RouterView />
</div>
</template>