update js code and interactions
This commit is contained in:
parent
eac0269e97
commit
930985302a
@ -1,7 +1,3 @@
|
|||||||
var uiUXLink = document.getElementById("ui-ux-design");
|
|
||||||
var webDesignLink = document.getElementById("web-design");
|
|
||||||
var frontentDevLink = document.getElementById("frontend-dev");
|
|
||||||
var graphicDesignLink = document.getElementById("graphic-design");
|
|
||||||
var faceWrapper = document.getElementById("my-face-wrapper");
|
var faceWrapper = document.getElementById("my-face-wrapper");
|
||||||
|
|
||||||
lottie.setQuality("low");
|
lottie.setQuality("low");
|
||||||
@ -38,7 +34,36 @@ window.addEventListener("load", () => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------- Services mouseover
|
||||||
|
document.querySelectorAll(".hero-content-link").forEach(item => {
|
||||||
|
item.addEventListener("mouseover", () => {
|
||||||
|
|
||||||
|
clearTimeout(startSteadyState);
|
||||||
|
myFace.loop = false;
|
||||||
|
myFace.playSegments([210, 249], true);
|
||||||
|
faceWrapper.style.transform = "rotate3d(20,-20,0,20deg) translateZ(-50px)";
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------- Services mouseout
|
||||||
|
document.querySelectorAll(".hero-content-link").forEach(item => {
|
||||||
|
item.addEventListener("mouseout", () => {
|
||||||
|
|
||||||
|
startSteadyState = setTimeout(() => {
|
||||||
|
|
||||||
|
steadyState();
|
||||||
|
faceWrapper.style.transform = "none";
|
||||||
|
|
||||||
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
//--------------------------------------------------------------------------- UI UX
|
//--------------------------------------------------------------------------- UI UX
|
||||||
uiUXLink.addEventListener("mouseover", () => {
|
uiUXLink.addEventListener("mouseover", () => {
|
||||||
clearTimeout(startSteadyState);
|
clearTimeout(startSteadyState);
|
||||||
@ -91,7 +116,7 @@ graphicDesignLink.addEventListener("mouseout", () => {
|
|||||||
faceWrapper.style.transform = "none";
|
faceWrapper.style.transform = "none";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user