├── CustomCursor.vue
├── README.md
└── vue-custom-cursor.gif
/CustomCursor.vue:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
73 |
74 |
107 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Vue-Custom-Cursor
2 |
3 | Include the component in `App.vue`. Also, you might want to hide the default cursor in CSS like `* { cursor: none; }`.
4 |
5 | 
6 |
7 | ## Settings
8 |
9 | | Props | Type | Description |
10 | | :------------- |:-------------|:-------------|
11 | | targets | Array | Class-names and/or tag-names which should trigger the hover animation |
12 | | circleColor | String | The color of the outer circle |
13 | | dotColor | String | The color of the inner dot |
14 | | circleColorHover | String | The color of the outer circle when hovering over a selected target |
15 | | dotColorHover | String | The color of the inner dot when hovering over a selected target|
16 | | hoverSize | Number | The size of the cursor when hovering over a selected target|
17 |
18 | ## Example
19 |
20 | ```js
21 |
29 | ```
30 |
--------------------------------------------------------------------------------
/vue-custom-cursor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/hermanwikner/vue-custom-cursor/06b187a3f4d5a2fac5749391525757a3b54f9408/vue-custom-cursor.gif
--------------------------------------------------------------------------------