8000 feat: Add hover effects to logo borders with Appwrite brand colors by iamshishirpandey · Pull Request #2057 · appwrite/website · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Add hover effects to logo borders with Appwrite brand colors #2057

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 82 additions & 1 deletion src/lib/components/Technologies.svelte
9F74
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<li>
<a
href={platform.href}
class="web-icon-button web-box-icon has-border-gradient"
class="web-icon-button web-box-icon has-border-gradient animated-border-button"
=>
trackEvent(
`technologies-${platform.name.replace(' ', '-').toLowerCase()}-click`
Expand All @@ -94,3 +94,84 @@
</Tooltip>
{/each}
</ul>

<style>
.animated-border-button {
position: relative;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-border-button::before {
content: '';
position: absolute;
inset: 0;
border-radius: 0.5rem;
border: 1px solid transparent;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.16) 0%,
rgba(255, 255, 255, 0) 100%
)
border-box;
mask:
linear-gradient(#fff 0 0) padding-box,
linear-gradient(#fff 0 0);
mask-composite: exclude;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease;
}

.animated-border-button::after {
content: '';
position: absolute;
inset-x: 0;
top: -1px;
height: 1px;
width: 0;
margin: 0 auto;
background: linear-gradient(
90deg,
transparent,
var(--color-primary, currentColor),
transparent
);
transition: width 0.4s ease;
border-radius: 1px;
z-index: 1;
}

.animated-border-button:hover {
transform: translateY(-2px);
box-shadow:
0 20px 25px -5px rgba(0, 0, 0, 0.1),
0 10px 10px -5px rgba(0, 0, 0, 0.04),
0 0 0 1px rgba(255, 255, 255, 0.1),
0 0 20px rgba(255, 255, 255, 0.15);
}

.animated-border-button:hover::before {
opacity: 1;
}

.animated-border-button:hover::after {
width: 50%;
}

.animated-border-button:active {
transform: translateY(0);
transition-duration: 0.1s;
}

/* Dark mode adjustments */
:global(.dark) .animated-border-button:hover {
box-shadow:
0 25px 50px -12px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.2),
0 0 25px rgba(255, 255, 255, 0.1);
}

:global(.dark) .animated-border-button::after {
background: linear-gradient(90deg, transparent, var(--color-primary, #ffffff), transparent);
}
</style>
0