Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
logusivam authored Jun 7, 2024
1 parent dd7dfac commit 4d62915
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 0 deletions.
40 changes: 40 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stair-Animation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 class="h1">Every Problem Is A Step to Success</h1>
<div class="stairs" title="hover the steps for ADDON effect">
<div class="base"></div>
<div class="step" style="--j:1">
<i></i>
<i></i>
</div>
<div class="step" style="--j:2">
<i></i>
<i></i>
</div>
<div class="step" style="--j:3">
<i></i>
<i></i>
</div>
<div class="step" style="--j:4">
<i></i>
<i></i>
</div>
<div class="step" style="--j:5">
<i></i>
<i></i>
</div>
<div class="step" style="--j:6">
<i></i>
<i></i>
</div>
</div>
</body>
</html>
153 changes: 153 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: radial-gradient(#c4d1ff,#0004ff);
overflow: hidden;
}

.h1
{
position: absolute;
justify-content: center;
align-items: center;
top: 2%;
left: 35%;
width: 100%;
color: #00ffdd;
overflow: hidden;
white-space: nowrap;
text-transform: capitalize;
animation: typing 3s steps(34, end) infinite;
cursor: 2s step-end infinite;
}

@keyframes typing
{
from
{
width: 0;
}
to
{
width: 100%;
}
}

@keyframes cursor
{
0%
{
border-color: transparent;
}
}

.stairs
{
position: relative;
width: 500px;
height: 300px;
transform-style: preserve-3d;
transform: rotateX(-30deg) rotateY(160deg);
animation: animate 10s linear infinite;
}
@keyframes animate
{
0%
{
transform: rotateX(-30deg) rotateY(0deg);
}
100%
{
transform: rotateX(-30deg) rotateY(360deg);
}
}
.stairs .base
{
position: absolute;
top: 0;
left: 60px;
width: 360px;
height: 300px;
background: #00b7ff;
transform: rotateX(90deg) translateZ(-150px) scale(1.25);
filter: blur(20px);
opacity: 0.5;
}
.stairs .step
{
position: absolute;
left: calc(60px * var(--j));
bottom: 0;
width: 60px;
height: calc(60px * var(--j));
/* background: #f00; */
transform-style: preserve-3d;
}
.stairs .step::before
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 60px;
height: 300px;
background: #0523b8;
transform: rotateX(90deg) translateZ(150px);
}
.stairs .step:hover::after
{
filter: brightness(2.1);
cursor: pointer;
content: "Logusivam Academy";
text-align: center;
color: #000dff;
transform: rotateY(270deg) translateZ(150px);
}
.stairs .step::after
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 300px;
height: 60px;
background: #0099ff;
transform: rotateY(90deg) translateZ(-150px);
}
.stairs .step i
{
position: absolute;
display: block;
width: 60px;
height: 100%;
background: #0015ff;
transform-style: preserve-3d;
}
.stairs .step i:nth-child(1)
{
transform: translateZ(150px);
}
.stairs .step i:nth-child(2)
{
transform: translateZ(-150px);
}
.stairs .step:last-child i:nth-child(2)::before
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 300px;
height: 100%;
background: #0015ff;
transform: rotateY(90deg) translate3d(-150px,0,-90px);
}

0 comments on commit 4d62915

Please sign in to comment.