
<div class="nexuslab-text-container">
<h1 class="nexuslab-text">BEYOND DESIGN<span>WE BUILD BRANDS</span></h1>
<h1 class="nexuslab-text">CRAFTING DIGITAL<span>EXPERIENCES</span></h1>
<h1 class="nexuslab-text">TRANSFORMING VISIONS<span>INTO REALITY</span></h1>
<h1 class="nexuslab-text">INNOVATION MEETS<span>EXCELLENCE</span></h1>
<h1 class="nexuslab-text">JOIN<span>NEXUSLAB</span></h1>
</div>
<style>
@import url('https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css');
.nexuslab-text-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
height: 100vh;
padding: 0;
margin: 0;
overflow: hidden;
}
.nexuslab-text {
font-family: 'Pretendard', sans-serif;
font-size: 10vw;
font-weight: 900;
letter-spacing: -0.02em;
line-height: 1;
margin: 0;
width: 100%;
color: rgba(255, 255, 255, 0.2);
background: linear-gradient(to right, #ffffff, #ffffff) no-repeat;
-webkit-background-clip: text;
background-clip: text;
background-size: 0%;
transition: background-size cubic-bezier(.1,.5,.5,1) 0.5s;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
position: relative;
}
.nexuslab-text span {
position: absolute;
width: 100%;
height: 100%;
background-color: #007BFF;
color: #fff;
clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
transform-origin: center;
transition: all cubic-bezier(.1,.5,.5,1) 0.4s;
display: flex;
flex-direction: column;
justify-content: center;
}
.nexuslab-text:hover > span {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
body {
background: transparent;
margin: 0;
padding: 0;
}
@media (max-width: 768px) {
.nexuslab-text {
font-size: 12vw;
}
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const textElements = document.querySelectorAll('.nexuslab-text');
function animateTextOnScroll() {
textElements.forEach(text => {
let rect = text.getBoundingClientRect();
let windowHeight = window.innerHeight;
if (rect.top < windowHeight * 0.8 && rect.bottom > windowHeight * 0.2) {
text.style.backgroundSize = "100%";
} else {
text.style.backgroundSize = "0%";
}
});
}
window.addEventListener("scroll", animateTextOnScroll);
animateTextOnScroll();
});
</script>