I have an en event object that I want to increase a property's value. The following code does not seem to change the properties value.
var e = jQuery.Event('mousemove');
e.pageX = jQuery(window).width() / 2;
jQuery(e).animate({pageX: 1000},
{
step: function(){
console.log(this.pageX);
jQuery('.mouseover').trigger(this);
},
duration: 5000,
easing: 'linear'
}
);
Any ideas please?
Update @dfsq created a fiddle and the animate function does seem to run. I don't know why this does not run in my script, and no errors are being thrown. –