Skip to content

Commit

Permalink
add fade transition to modals
Browse files Browse the repository at this point in the history
  • Loading branch information
n1crack committed Jan 27, 2024
1 parent 370fb6c commit 3eb1300
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
13 changes: 13 additions & 0 deletions src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@
.vf-scrollbar::-webkit-scrollbar-corner {
@apply bg-transparent;
}


/* modal fade effect */
.vuefinder .fade-enter-active,
.vuefinder .fade-leave-active {
transition: opacity 0.2s ease;
}

.vuefinder .fade-enter-from,
.vuefinder .fade-leave-to {
opacity: 0;
}

}

@tailwind utilities;
Expand Down
6 changes: 5 additions & 1 deletion src/components/VueFinder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
<v-f-statusbar :data="fetchData"/>
</div>

<component v-if="modal.active" :is="'v-f-modal-'+ modal.type" :selection="modal.data" :current="fetchData"/>
<Transition name="fade">
<component v-if="modal.active" :is="'v-f-modal-'+ modal.type" :selection="modal.data" :current="fetchData"/>
</Transition>

<v-f-context-menu :current="fetchData"/>

<iframe id="download_frame" style="display:none;"></iframe>
</div>
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/components/previews/Video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ onMounted(() => {
emit('load');
});
const test = (event) => {
console.log(event);
};
</script>

0 comments on commit 3eb1300

Please sign in to comment.