I am working on a site but when i gave rollover through js using tweenlite , its doesn't works smoothly
middBttn0.addEventListener("mouseover", midNavHover);
middBttn0.addEventListener("mouseout", midNavOut);
function midNavHover(e)
{
console.log('hover');
TweenMax.to( document.getElementById('midBttn0'), 0.5, { backgroundColor:"#9fc73a" });
}
function midNavOut(e)
{
console.log('hout');
TweenMax.to( document.getElementById('midBttn0'), 3, { backgroundColor:"#e6e6e6"});
}
anyone please help me, the rollover is quite slow