Skip to content

Commit

Permalink
feat: improving skeleton animations fps by using cubic-bezier instead…
Browse files Browse the repository at this point in the history
… of ease-in-out
  • Loading branch information
willmendesneto committed Oct 10, 2020
1 parent 7b6633c commit c5d0c66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ jobs:
steps:
- *attach_workspace
- run:
environment:
NG_CLI_ANALYTICS: "ci"
name: Checking bundle size
command: |
sudo npm rebuild
sudo npm run build:pkg
sudo npm run bundlesize
# end_to_end:
Expand Down
4 changes: 2 additions & 2 deletions projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
&.progress,
&.progress-dark {
animation: progress 2s ease-in-out infinite;
animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
background-size: 200px 100%;
}

Expand Down Expand Up @@ -72,7 +72,7 @@
* animations only if needed
*/
&.pulse {
animation: pulse 1.5s ease-in-out infinite;
animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
animation-delay: 0.5s;
}

Expand Down

0 comments on commit c5d0c66

Please sign in to comment.