Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. onmousemove = e => {
  2. window.last && last.forEach(a => a.style && (a.style.outline = 'none'));
  3. e.path.forEach((a, i, l) => a.style && (a.style.outline = (i/2) + `px solid hsl(${(i / l.length) * 360}, 100%, 50%)`));
  4. last = [...e.path];
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement