jquery - Div following with cursor: edges become dark on move -


i'm trying implement div follows cursor , made simple example of uses

$(document).on('mousemove', function(event) {     $('#pursuer').css({       top: event.clienty + 10 + 'px',       left: event.clientx + 10 + 'px',     });   }); 

full example here.

but there bug - when moving cursor edges of div dark. firstly thinking problem lay in color transparency:

background-color: rgba(220, 165, 167, .4); 

but changing hex

background-color: #f0dadb; 

didn't help

it there way avoid bad effect?

upd: i'm using chrome 42.0.2 / ff 37.0.2 / opera 29 on windows 8.1. reproduced in each one. strangest thing can't reproduce on osx (in browser above). more - can't screenshot problem in windows because screenshot shows ok, isn't

upd 2: noted in comment - have no additional plugins , extensions in browsers. can reproduce issue on 2 of 3 windows pc (all windows 8.1 aboard)...trying find out differences. not sure, looks problem in os.

upd 3: advised did following:

1) removed background, added text, added border (with radius , without radius) - problem didn't appear

2) removed background, added additional div filler:

<div id='pursuer'>   <div id='filler'></div> </div> 

with styles

#filler {   position: relative;    background-color: #f0dadb;   border-radius: 35px;   width: 100%;   height: 100%; } 

and problem appeared again. hence, cause in background

upd 4: not in background-color - if put image background can see same issue


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -