1.0.2 • Published 5 months ago

bg-gif v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

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>
1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago