Skip to content

Commit

Permalink
Love/favorite animations easter egg
Browse files Browse the repository at this point in the history
  • Loading branch information
rgantzos committed Aug 26, 2023
1 parent 4cfcf66 commit 98e6f0d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions features/features.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[
{
"version": 2,
"id": "love-fave-animate",
"versionAdded": "v3.2.0"
},
{
"version": 2,
"id": "default-to-local",
Expand Down
10 changes: 10 additions & 0 deletions features/love-fave-animate/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "Love Animations",
"description": "Animates the clicking of the love and favorite buttons on project pages.",
"credits": [
{ "username": "NcTV-", "url": "https://scratch.mit.edu/users/NcTV-/" },
{ "username": "rgantzos", "url": "https://scratch.mit.edu/users/rgantzos/" }
],
"type": ["Website", "Egg"],
"styles": [{ "file": "style.css", "runOn": "/projects/*" }]
}
23 changes: 23 additions & 0 deletions features/love-fave-animate/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.project-favorites.favorited:before {
animation-duration: 0.5s;
animation-name: popButton;
}

.project-loves.loved:before {
animation-duration: 0.5s;
animation-name: popButton;
}

@keyframes popButton {
from {
transform: scale(100%) rotate(0deg);
}

50% {
transform: scale(150%) rotate(200deg);
}

to {
transform: scale(100%) rotate(360deg);
}
}

0 comments on commit 98e6f0d

Please sign in to comment.