Giter Site home page Giter Site logo

vue-custom-cursor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-custom-cursor's Issues

Cursor becomes blurry on hover expansion?

I can't find a specific reason for this occurrence. On initial contact with a targeted element, the outer circle becomes blurry for a second or two then just automatically smoothens out. Can anyone elaborate or even +1 me?

Cursor stop working when I enter a svg (not tested on something else)

I have my cursor in the App.js with another component : my homepage

<template>
  <Cursor
    :targets="['img', 'a', 'button']"
    :circleColor="'#fff'"
    :dotColor="'#ffffff'"
    :dotColorHover="'transparent'"
    :hoverSize="1.3"
  >
  </Cursor>
  <Homepage />
</template>

image

As soon as I enter my svg, I got this error :
custom-cursor.vue:52 Uncaught TypeError: e.target.className.toLowerCase is not a function

The only workaround that I've found is to set the svg as a hover item, but it's not how I want it to work

Instead of targets, use data-attributes for hovering

Realy good work you did, I have one (maybe later a few) new features.
Use data-attributes instead of targets array, cause if you have more than one class for get targeting element it will not work.

e.target.getAttribute("data-hover-cursor")
<img src="some_img_path" data-hover-cursor="true" class="link__img" />

and add hide cursor props ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.