JSFiddle - React, Tailwind, and code Playground

HTML

<div class="mouseover">move</div>

JavaScript

var e = jQuery.Event('mousemove');
e.pageX = jQuery(window).width() / 2;
$(e).animate({pageX: 1000}, {
        step: function() {
            console.log(this.pageX);
            $('.mouseover').trigger(this);
        },
        duration: 5000,
        easing: 'linear'
    }
);