Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hitbox Vue Composable

Minimal example of how to use useHitbox() to trigger animated floating numbers on an element.

🔧 Usage

<template>
  <div>
    <button ref="plus" @click="() => trigger(plus, 1)">+1</button>
    <button ref="minus" @click="() => trigger(minus, -1)">-1</button>
  </div>
</template>

<script setup>
const { trigger } = useHitbox()
const plus = ref(null)
const minus = ref(null)
</script>

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages