fix: animation
This commit is contained in:
parent
5cecacdba0
commit
9e2bb4e80c
1 changed files with 36 additions and 2 deletions
38
index.html
38
index.html
|
|
@ -19,6 +19,7 @@
|
||||||
<a target="_blank" class="project" href="https://thecourseforum.com"
|
<a target="_blank" class="project" href="https://thecourseforum.com"
|
||||||
>theCourseForum</a
|
>theCourseForum</a
|
||||||
>
|
>
|
||||||
|
<span class="description">— university enrollment analytics</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
|
@ -27,11 +28,17 @@
|
||||||
href="https://atlas-devs-atlas.vercel.app/"
|
href="https://atlas-devs-atlas.vercel.app/"
|
||||||
>atlas</a
|
>atlas</a
|
||||||
>
|
>
|
||||||
|
<span class="description"
|
||||||
|
>— cutting-edge machine learning research blog</span
|
||||||
|
>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a target="_blank" class="project" href="https://github.com/nvimdev"
|
<a target="_blank" class="project" href="https://github.com/nvimdev"
|
||||||
>nvimdev</a
|
>nvimdev</a
|
||||||
>
|
>
|
||||||
|
<span class="description"
|
||||||
|
>— open-source neovim contributions</span
|
||||||
|
>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<h2><a target="_blank" href="/resume.pdf">resume</a></h2>
|
<h2><a target="_blank" href="/resume.pdf">resume</a></h2>
|
||||||
|
|
@ -45,6 +52,7 @@
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: et-book;
|
font-family: et-book;
|
||||||
font-size: 1.5em;
|
font-size: 1.5em;
|
||||||
|
|
@ -55,11 +63,11 @@
|
||||||
overscroll-behavior-y: none;
|
overscroll-behavior-y: none;
|
||||||
overscroll-behavior-x: none;
|
overscroll-behavior-x: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
overflow-anchor: none;
|
overflow-anchor: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.project {
|
.project {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
@ -72,10 +80,36 @@
|
||||||
background-color: #000;
|
background-color: #000;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
transition: width 0.3s;
|
transition: width 0.4s;
|
||||||
}
|
}
|
||||||
.project:hover::after {
|
.project:hover::after {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.description {
|
||||||
|
visibility: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
width: 0;
|
||||||
|
transition: all 0.4s ease;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
|
max-width: 0;
|
||||||
|
}
|
||||||
|
.project:hover + .description,
|
||||||
|
.description.revealed {
|
||||||
|
visibility: visible;
|
||||||
|
width: auto;
|
||||||
|
max-width: 450px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
document.querySelectorAll(".project").forEach((project) => {
|
||||||
|
project.addEventListener("mouseover", () => {
|
||||||
|
const description = project.nextElementSibling;
|
||||||
|
description.classList.add("revealed");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue