Skip to content

Commit fe46b2b

Browse files
authored
Merge pull request #675 from rgantzos/main
2 parents cc363fc + 98e6f0d commit fe46b2b

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

features/features.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
[
2+
{
3+
"version": 2,
4+
"id": "love-fave-animate",
5+
"versionAdded": "v3.2.0"
6+
},
27
{
38
"version": 2,
49
"id": "default-to-local",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"title": "Love Animations",
3+
"description": "Animates the clicking of the love and favorite buttons on project pages.",
4+
"credits": [
5+
{ "username": "NcTV-", "url": "https://scratch.mit.edu/users/NcTV-/" },
6+
{ "username": "rgantzos", "url": "https://scratch.mit.edu/users/rgantzos/" }
7+
],
8+
"type": ["Website", "Egg"],
9+
"styles": [{ "file": "style.css", "runOn": "/projects/*" }]
10+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.project-favorites.favorited:before {
2+
animation-duration: 0.5s;
3+
animation-name: popButton;
4+
}
5+
6+
.project-loves.loved:before {
7+
animation-duration: 0.5s;
8+
animation-name: popButton;
9+
}
10+
11+
@keyframes popButton {
12+
from {
13+
transform: scale(100%) rotate(0deg);
14+
}
15+
16+
50% {
17+
transform: scale(150%) rotate(200deg);
18+
}
19+
20+
to {
21+
transform: scale(100%) rotate(360deg);
22+
}
23+
}

0 commit comments

Comments
 (0)