-
Notifications
You must be signed in to change notification settings - Fork 1
/
saxxtext.js
3 lines (1 loc) · 864 Bytes
/
saxxtext.js
1
function setAnimationSaxx(t,e){var s,o;s=t,o=e,setTimeout(function(){var t,e=document.querySelectorAll(s);for(t=0;t<e.length;++t)e[t].removeAttribute("class",o)},900),function(t,e){var s,o=document.querySelectorAll(t);for(s=0;s<o.length;++s)o[s].setAttribute("class",e)}(t,e)}function setSaxxMouseEffect(t,e,s,o){var r=document.querySelectorAll(t);for(i=0;i<r.length;++i)r[i].addEventListener("mouseover",function(){this.style.color=o,this.style.cursor="default",this.setAttribute("class",e)}),r[i].addEventListener("hover",function(){this.style.color=o,this.style.cursor="default",this.setAttribute("class",e)}),r[i].addEventListener("mousemove",function(){this.style.color=o,this.style.cursor="default",this.setAttribute("class",e)}),r[i].addEventListener("mouseout",function(){this.style.color=s,this.style.cursor="default",this.removeAttribute("class",e)})}