Skip to content

Commit

Permalink
style and animate profile link on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 6, 2023
1 parent 6cc4475 commit 7c3a438
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/media/images/background/github-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,30 @@ input[type="text"], input[type="date"] {
overflow: hidden;
}

#menu .fieldset-options p {
width: 100%;
}

#menu a {
text-decoration: none;
color: inherit;
}

#menu .fieldset-options .menu-item.about {
--icon-size: 50px;
--duration: 3s;
background-size: 700%;
transition: background-size var(--duration) cubic-bezier(.08,.82,.17,1);
background-position: bottom left;
}
#menu .fieldset-options .menu-item.about:hover {
background: url(./media/images/background/github-mark.svg);
background-size: var(--icon-size);
animation: bg-anim var(--duration) calc(var(--duration) / 5) infinite linear;
}
@keyframes bg-anim {
to { background-position: calc(var(--icon-size) * 2) calc(var(--icon-size) * -1); }
}

/* page content */

Expand Down

0 comments on commit 7c3a438

Please sign in to comment.