Skip to content

Commit

Permalink
Simplify loader code
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Sep 14, 2024
1 parent 573f3b1 commit 7a14960
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
<title>${title}</title>
<style>
.loader {
position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
position: fixed; top: calc(50% - 25px); left: calc(50% - 25px);
width: 50px; aspect-ratio: 1; animation: ll 1s infinite linear;
border-radius: 50%; border: 8px solid lightgray; border-right-color: black;
}
@keyframes ll {to{transform: translate(-50%, -50%) rotate(1turn)}}
@keyframes ll {to{transform: rotate(1turn)}}
</style>
</head>
<body>
Expand Down

0 comments on commit 7a14960

Please sign in to comment.