Multiple mouse trail

Navigation

Skip navigation.

Site search

Site navigation

Details and download

Multiple mouse trail script

This script can create several types of mouse trail. Generally, these can be very annoying on real Web pages, and make the page itself difficult to read. You should restrict your use of mouse trails to where it is really appropriate, and will not be too distracting.

Use these buttons to configure the 'number of trails', 'contents of each trail', 'elasticity' and 'fixed speed' inputs. Good browsers will show the changes in the relevant colour below. You can also type new values for the x and y offset inputs directly into the boxes below.

The way this works is to constantly monitor and store the position of the mouse.
In variable speed mode, every 50ms it moves each trail one Xth of the way towards the (X-1)th trail (where X is the trail number and X=0 is the mouse), including any offsets that were specified.
In fixed speed mode, every 50ms it moves each trail to the position that the (X-1)th trail was at 50ms ago, including any offsets that were specified.
In elastic mode, the motion is the same as for variable speed mode, except that each trail attempts to add on 0.6 of the speed that it was moving 50ms ago.

To download the script(s), see the script license, and check details like browser compatibility, use the links on the navigation panel at the top of this page.

Demonstration

Note: changing the number of trails will reload the page.

This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.