Skip to content

Commit

Permalink
progressive enhancement check
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSunshyne committed May 22, 2024
1 parent d0ba24e commit 5cb7957
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/frontendmu-nuxt/pages/meetups.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const nextMeetupId = nextMeetup.value.id;
</div>
</template>

<style scoped>
<style scoped lang="postcss">
@keyframes list-item-scroll-effect {
0% {
opacity: 0;
Expand All @@ -58,13 +58,15 @@ const nextMeetupId = nextMeetup.value.id;
}
}
.card-entrance {
view-timeline-name: --list-item-timeline;
animation-timeline: --list-item-timeline;
animation-range-start: entry 20%;
animation-range-end: cover 95%;
animation-fill-mode: both;
animation-name: list-item-scroll-effect;
transform-origin: center center;
@supports (animation-timeline: view()) {
.card-entrance {
view-timeline-name: --list-item-timeline;
animation-timeline: --list-item-timeline;
animation-range-start: entry 20%;
animation-range-end: cover 95%;
animation-fill-mode: both;
animation-name: list-item-scroll-effect;
transform-origin: center center;
}
}
</style>

0 comments on commit 5cb7957

Please sign in to comment.