Skip to content

Commit

Permalink
feat(style): status buttons animations (#430)
Browse files Browse the repository at this point in the history
* feat(style): status buttons animations

* chore: lint

* fix: decrease bounce range
  • Loading branch information
GeopJr authored Aug 7, 2023
1 parent e73ed03 commit 3d58d52
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,33 @@ flowboxchild {
}

/* Status action icons */
@keyframes rotate_star {
from { -gtk-icon-transform: rotate(-72deg); }
to {}
}

@keyframes bounce {
0% { -gtk-icon-transform: translateY(-3px); }
50% { -gtk-icon-transform: translateY(3px); }
100% {}
}

@keyframes rotate_half {
from { -gtk-icon-transform: rotate(-180deg); }
to {}
}

.ttl-status-action-reblog.enabled image {
animation: rotate_half 0.4s ease;
}

.ttl-status-action-bookmark.enabled image {
animation: bounce 0.4s ease;
}

.ttl-status-action-star.enabled image {
animation: rotate_star 0.4s ease;
}

.ttl-status-action-star:hover,
.ttl-status-action-star.enabled {
Expand Down

0 comments on commit 3d58d52

Please sign in to comment.