Skip to content

Commit

Permalink
feat: opacity transition when 3d appear
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Feb 28, 2024
1 parent 55dfa54 commit 9041f90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/components/hero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ import Button from '@/components/ui/button.vue'

<model-viewer
alt="AdonisJS 3d logo"
class="hidden h-110 flex-1"
class="hidden h-110 flex-1 transition-opacity duration-4000 ease-in-out"
:class="{
'opacity-0': modelViewerScriptLoaded.value === false,
'opacity-100': modelViewerScriptLoaded.value === true,
}"
md="block"
auto-rotate
disable-zoom
Expand Down

0 comments on commit 9041f90

Please sign in to comment.