vue3-tilt
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

vue3 tilt

Add Tilt-Effect to your elements, based on vanilla-tilt.js

<template>
  <div
    v-tilt="{ speed: 500, perspective: 1200 }"
    class="flex h-[300px] w-[300px] content-center items-center justify-center rounded-xl bg-gradient-to-tl from-violet-500 to-fuchsia-500 preserve-3d"
    style="boxShadow:0 48px 60px 0 rgba(2,14,26,0.24);"
  >
    <h2 class="text-20px" style="transform:rotateZ('60px')">
      Developed using
      <a class="text-#fff hover:text-#fff" href="https://github.com/micku7zu/vanilla-tilt.js">
        vanilla-tilt
      </a>
    </h2>
  </div>
</template>

Credits

Thanks to:

Readme

Keywords

Package Sidebar

Install

npm i vue3-tilt

Weekly Downloads

2

Version

0.0.4

License

MIT

Unpacked Size

5.7 kB

Total Files

7

Last publish

Collaborators

  • elonehoo