Skip to content

Commit

Permalink
animate logo
Browse files Browse the repository at this point in the history
  • Loading branch information
ubermanu committed Sep 24, 2023
1 parent 48c72da commit 965f0bc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions sites/roller/src/app.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,24 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

.logo {
position: relative;
transform-origin: left center;
animation: drift 1.4s ease forwards;
}

@keyframes drift {
30% {
transform: translateX(10%);
}
50% {
transform: translateX(-50%);
}
90% {
transform: translateX(0) rotate(-10deg);
}
100% {
transform: translateX(0);
}
}
2 changes: 1 addition & 1 deletion sites/roller/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="my-auto">
<img
src={rollerIcon}
class="mx-auto mb-6 max-w-[100px] drop-shadow sm:max-w-[120px]"
class="logo mx-auto mb-6 max-w-[100px] drop-shadow sm:max-w-[120px]"
alt=""
/>
<h1 class="mb-4 font-serif text-3xl text-sky-950">Roller</h1>
Expand Down

0 comments on commit 965f0bc

Please sign in to comment.