Skip to content

Commit

Permalink
feat: add logo-pulse animation in web
Browse files Browse the repository at this point in the history
  • Loading branch information
sipasi committed Aug 9, 2024
1 parent 4fe7600 commit ff7b624
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions web/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
html,
body {
margin: 0;
padding: 0;
height: 100%;
background-color: #1e1e1e;
}
19 changes: 19 additions & 0 deletions web/css/loading.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@keyframes logo-pulse {
0% {
transform: scale(.8);
}


100% {
transform: scale(1);
}
}

.loading-animation-container .logo {
position: absolute;
margin: auto auto;
inset: 0;
width: 240px;
height: 240px;
animation: logo-pulse 1.6s alternate infinite;
}
8 changes: 8 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@

<title>Open Work</title>
<link rel="manifest" href="manifest.json">

<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="css/loading.css" />
</head>

<body>
<!-- Page loading animation -->
<div class="loading-animation-container">
<img class="logo" src="icons/icon-512.png" />
</div>

<script src="flutter_bootstrap.js" async></script>
</body>

Expand Down

0 comments on commit ff7b624

Please sign in to comment.