Here's the page in question: http://yac-web.com/clients/dessert/ I am trying to set up an effect that happens while the mouse is being moved and stops when it's not. For some reason the event starts fine but then just keeps looping. I am not super familiar with JS and couldn't find much info on the mousemove event. Thanks
$('html').mousemove(function () {
$('html').toggleClass("change", 1000, "easeOutSine");
})
then
html {
background: rgba(191, 54, 245, 1);
}
.change {
background: rgba(61, 98, 245, 1);
}
Demo: Fiddle