benjaminpalko/src/lib/components/WIP.svelte
Benjamin Palko 15fc4c5550
All checks were successful
Deployment / Install (push) Successful in 2m36s
WIP final
2025-04-27 15:51:29 -04:00

132 lines
2.5 KiB
Svelte

<div class="hazard-border flex w-full flex-col justify-around text-xl font-semibold italic">
<div class="scroll-parent hazard w-full -skew-2 overflow-hidden px-8">
<div class="scroll-element primary flex justify-around">
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
</div>
<div class="scroll-element secondary flex justify-around">
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
</div>
</div>
<div class="scroll-parent hazard w-full skew-2 overflow-hidden px-8">
<div class="scroll-element -primary flex justify-around">
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
</div>
<div class="scroll-element -secondary flex justify-around">
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
</div>
</div>
<div class="scroll-parent hazard w-full -skew-2 overflow-hidden px-8">
<div class="scroll-element primary flex justify-around">
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
</div>
<div class="scroll-element secondary flex justify-around">
<p>Work In Progress</p>
<p>Under Construction</p>
<p>Caution</p>
<p>Work In Progress</p>
<p>Under Construction</p>
</div>
</div>
</div>
<style>
.scroll-parent {
position: relative;
height: 4.2rem;
}
.scroll-element {
position: absolute;
width: inherit;
height: inherit;
left: 0%;
top: 0%;
}
.primary {
animation: primary 10s linear infinite;
}
.secondary {
animation: secondary 10s linear infinite;
}
.-primary {
animation: -primary 10s linear infinite;
}
.-secondary {
animation: -secondary 10s linear infinite;
}
@keyframes primary {
from {
left: 0%;
}
to {
left: -100%;
}
}
@keyframes secondary {
from {
left: 100%;
}
to {
left: 0%;
}
}
@keyframes -primary {
from {
left: -100%;
}
to {
left: 0%;
}
}
@keyframes -secondary {
from {
left: 0%;
}
to {
left: 100%;
}
}
.hazard-border {
border: solid 20px;
border-image: repeating-linear-gradient(-75deg, #ffb101, #ffb101 10px, black 10px, black 20px)
20;
}
.hazard {
color: black;
background: #ffb101;
border-top: solid 20px;
border-bottom: solid 20px;
border-image: repeating-linear-gradient(-75deg, #ffb101, #ffb101 10px, black 10px, black 20px)
20;
}
</style>