Skip to main content
100%

19kmunz Mouse Follower

✓ Published0🌍 Public
KK Munz
Last edited Feb 13, 2023
Created on Jan 11, 2023
Forked from Hello VizHub

A mouse follower shows a spinning star that tracks the cursor across an SVG canvas, changing opacity based on horizontal position. The star rotates via the Web Animations API, while d3.js appends white circles at intervals to create a disappearing trail. The star’s SVG path is imported from a separate JavaScript file, and styling is handled through CSS.

AI-generated description

Following along with the 2023 WPI Data Viz Week 1 Videos and having fun! Based on the simple mouse follower.

  • Adds fun spin when moving along the x coordinate. I wanted to play with css animation for the first time!
  • Adds a star svg! I stored the svg path info in seperate javascript file
  • Adds a disappearing trail!
  • Spruces up some colors
  • Changes opacity of the star based on the x coordinate!
MIT Licensed

Similar vizzes