Skip to content

Commit 5cb7957

Browse files
committed
progressive enhancement check
1 parent d0ba24e commit 5cb7957

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

packages/frontendmu-nuxt/pages/meetups.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const nextMeetupId = nextMeetup.value.id;
3939
</div>
4040
</template>
4141

42-
<style scoped>
42+
<style scoped lang="postcss">
4343
@keyframes list-item-scroll-effect {
4444
0% {
4545
opacity: 0;
@@ -58,13 +58,15 @@ const nextMeetupId = nextMeetup.value.id;
5858
}
5959
}
6060
61-
.card-entrance {
62-
view-timeline-name: --list-item-timeline;
63-
animation-timeline: --list-item-timeline;
64-
animation-range-start: entry 20%;
65-
animation-range-end: cover 95%;
66-
animation-fill-mode: both;
67-
animation-name: list-item-scroll-effect;
68-
transform-origin: center center;
61+
@supports (animation-timeline: view()) {
62+
.card-entrance {
63+
view-timeline-name: --list-item-timeline;
64+
animation-timeline: --list-item-timeline;
65+
animation-range-start: entry 20%;
66+
animation-range-end: cover 95%;
67+
animation-fill-mode: both;
68+
animation-name: list-item-scroll-effect;
69+
transform-origin: center center;
70+
}
6971
}
7072
</style>

0 commit comments

Comments
 (0)