bg-gif
v1.0.2
Published
A simple background gif plugin
Downloads
1
Readme
Installation
npm install bg-gif
Use
<template>
<canvas ref="myCanvas"></canvas>
</template>
<script setup lang='ts'>
import { getBg } from 'bg-gif'
const myCanvas = ref(null)
onMounted(() => {
getBg(myCanvas.value)
})
</script>
<style scoped lang='scss'>
canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
</style>