Skip to content

Commit

Permalink
add logo animation
Browse files Browse the repository at this point in the history
  • Loading branch information
berntpopp committed Dec 9, 2023
1 parent 3853982 commit e2222ee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app/src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
width="68"
alt="SysNDD Logo"
rel="preload"
class="app-logo"
>
SysNDD
</b-navbar-brand>
Expand Down Expand Up @@ -197,6 +198,26 @@ export default {

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
/* Styles for the application logo */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.app-logo {
max-width: 92px; /* Fixed maximum width */
margin-right: 20px; /* Spacing between logo and title */
animation: fadeIn 2s ease-out forwards;
}
.app-logo:hover {
animation: pulse 2s infinite;
}
/* Styles for the navbar */
h3 {
margin: 40px 0 0;
}
Expand Down

0 comments on commit e2222ee

Please sign in to comment.