forked from avi/signalelsewhere
Save point: Buttons renamed to CREATOR/BUILDER/DEVELOPER, WHERE DO YOU FIT IN? fades in split second after buttons
This commit is contained in:
37
index.html
37
index.html
@@ -169,6 +169,18 @@
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
#scene3FitInText {
|
||||
position: absolute;
|
||||
bottom: 42%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
font-size: 1.2rem;
|
||||
color: #00ff00;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 1s ease;
|
||||
}
|
||||
|
||||
#scene2Lines {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
@@ -311,9 +323,10 @@
|
||||
<span id="scene3RecruitText4"></span>
|
||||
</div>
|
||||
</div>
|
||||
<button id="creatorBtn" class="choiceBtn">CREATORS</button>
|
||||
<button id="builderBtn" class="choiceBtn">BUILDERS</button>
|
||||
<button id="developerBtn" class="choiceBtn">DEVELOPERS</button>
|
||||
<div id="scene3FitInText"></div>
|
||||
<button id="creatorBtn" class="choiceBtn">CREATOR</button>
|
||||
<button id="builderBtn" class="choiceBtn">BUILDER</button>
|
||||
<button id="developerBtn" class="choiceBtn">DEVELOPER</button>
|
||||
</div>
|
||||
|
||||
<div id="sceneCreator" class="scene">
|
||||
@@ -768,6 +781,20 @@
|
||||
btn.style.opacity = btnOpacity;
|
||||
}, 30);
|
||||
});
|
||||
setTimeout(() => {
|
||||
const fitInText = document.getElementById('scene3FitInText');
|
||||
fitInText.textContent = 'WHERE DO YOU FIT IN?';
|
||||
fitInText.style.visibility = 'visible';
|
||||
let fiOpacity = 0;
|
||||
const fiFadeIn = setInterval(() => {
|
||||
fiOpacity += 0.05;
|
||||
if (fiOpacity >= 1) {
|
||||
fiOpacity = 1;
|
||||
clearInterval(fiFadeIn);
|
||||
}
|
||||
fitInText.style.opacity = fiOpacity;
|
||||
}, 30);
|
||||
}, 500);
|
||||
}, 3000);
|
||||
}, 20, 50);
|
||||
});
|
||||
@@ -852,6 +879,10 @@
|
||||
btn.style.opacity = '1';
|
||||
btn.style.pointerEvents = 'auto';
|
||||
});
|
||||
const fitInText = document.getElementById('scene3FitInText');
|
||||
fitInText.textContent = 'WHERE DO YOU FIT IN?';
|
||||
fitInText.style.visibility = 'visible';
|
||||
fitInText.style.opacity = '1';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user