Skip to content

Commit

Permalink
Merge pull request #4127 from pulibrary/header-transition
Browse files Browse the repository at this point in the history
Header: Make vue component loading a bit more subtle with a css animation
  • Loading branch information
christinach authored Aug 20, 2024
2 parents 461dad2 + 39b584e commit b6a5353
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 b6a5353

Please sign in to comment.