Skip to content

alexander-shch/mouse-event-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mouse-event-animation

A working example JSFIDDLE

to initiate the script just add the next script to your DOM

<script type="text/javascript">
	var args = {
		time : "0.3s", 									// Default "0.3s"
		setToElement: document.getElementById('foo'), 	// Default document
		color: '#4545aa', 								// Default #000
		background: '#444' 								// Default transparent
	};

	animateMouse('mousemove', args);
</script>

setToElement option is for applying the animation on spesific areas of the page

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published