Skip to content

Commit

Permalink
style: simplify animation
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Nov 4, 2019
1 parent 6c603e5 commit ad3f9d1
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,19 @@
}
{{ end }}
{{ if .Site.Params.iconAnimation }}
@keyframes heartAnimate {
0%,100%{transform:scale(1);}
10%,30%{transform:scale(0.9);}
20%,40%,60%,80%{transform:scale(1.1);}
50%,70%{transform:scale(1.1);}
@keyframes heartbeat {
0%, 100% {
transform: scale(1);
}
10%, 30% {
transform: scale(0.9);
}
20%, 40%, 50%, 60%, 70%, 80% {
transform: scale(1.1);
}
}
.footer-icon {
animation: heartAnimate 1.33s ease-in-out infinite;
animation: heartbeat 1.33s ease-in-out infinite;
}
{{ end }}
{{ end }}
Expand Down

0 comments on commit ad3f9d1

Please sign in to comment.