bg-gif

1.0.2 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i bg-gif

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

2.3 kB

Total Files

3

Last publish

Collaborators

  • xzg-yyds