Skip to content

Commit

Permalink
Header: Make vue component loading a bit more subtle with a css anima…
Browse files Browse the repository at this point in the history
…tion

This is a follow-up to #4123.  To my eye, there is still some prominent flashing when
the header Vue component loads.  This commit attempts to make it a bit more subtle
by fading it in with a CSS animation.
  • Loading branch information
sandbergja committed Aug 20, 2024
1 parent 461dad2 commit 39b584e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/javascript/orangelight/vue_components/orangelight_header.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="container">
<div class="container header-container">
<lux-library-header app-name="Catalog" abbr-name="Catalog" app-url="/" theme="dark">
<lux-menu-bar type="main-menu" :menu-items="menuItems" @menu-item-clicked="handleMenuItemClicked"></lux-menu-bar>
</lux-library-header>
Expand Down Expand Up @@ -63,3 +63,13 @@ function handleMenuItemClicked(event) {
}
}
</script>
<style>
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
.header-container {
animation: fadeIn 0.3s;
}
</style>

0 comments on commit 39b584e

Please sign in to comment.