$(document).ready(function (){ $('.mouseArea').movyjs({ onComplete: function (){ alert("COMPLETED"); } }); });