Vue Cursor Fx
An animated custom cursor effects for interactive elements like navigation - w/ VueJS - SSR Compatible.
Installation
This package is available on npm
and yarn
.
Usage
As component
As a global plugin
Browser's way
Markup
Use one time in the main file of your project or in every views, where you want it.
Options
N.B.: the cursor is not activated on touchscreen devices.
Slots
Events
Props
Attribute | Type | Default value | About |
---|---|---|---|
config | Object | {} | The default options applied to cursor, see below the BASE_CONFIG |
color | String | #333333 | Color for the cursor |
color-hover | String | #333333 | Color, on hover, for the cursor |
outside-size | String | null | The size of outer circle |
inside-size | String | null | The size of inner dot |
shape | String | null | Only available shapes are circle and square |
delay | String, Number | 60 | Activate cursor after x seconds |
mix-blend-mode | String | null | Set the global mix-blend-mode style |
force-custom-slot | Boolean | false | Show or hide the internal default slot |
allow-on-mobile | Boolean | false | Allow the cursor on mobile devices |
hide-outside | Boolean | false | Hide outer circle |
hide-inside | Boolean | false | Hide inner dot |
disabled | Boolean | false | Disable the activation of the cursor |
Methods
Integrations
VueRouter
NuxtJs
- For the entire website: place the component in the desired layouts (ex. layouts/default.vue);
- For some pages only: place the component in the desired pages (ex. pages/index.vue).