$(document).ready(function (){ $('.mouseArea').movyjs({ moveType: "triangle", onComplete: function (){ alert("triangle completed"); } }); });