19kmunz Mouse Follower
✓ Published0🌍 Public
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 descriptionFollowing 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