calendar strip add animation
This commit is contained in:
parent
ab59e097a0
commit
ea052d22f0
2 changed files with 22 additions and 7 deletions
|
|
@ -15,15 +15,14 @@
|
|||
},
|
||||
|
||||
async updateDates() {
|
||||
document.body.classList.toggle('progress')
|
||||
this.dates = getDatesInMonth(this.monthNumb);
|
||||
|
||||
|
||||
const daysNode = document.querySelector('.calendar-strip__days')
|
||||
daysNode.classList.toggle('progress')
|
||||
|
||||
this.dates = getDatesInMonth(this.monthNumb);
|
||||
this.dates = await getMergedDates(this.monthNumb, this.dates)
|
||||
|
||||
console.log('Merged dates', this.dates)
|
||||
document.body.classList.toggle('progress')
|
||||
document.querySelector('.calendar-strip__days').classList.toggle('progress')
|
||||
},
|
||||
|
||||
handleDayHover() {
|
||||
|
|
@ -48,7 +47,7 @@
|
|||
</div>
|
||||
<ul class="calendar-strip__days">
|
||||
<template x-for="(date, index) in dates">
|
||||
<li class="calendar-strip__day" :class="targetSessions.length > 0 && open && index == targetSessions[0].day ? 'active' : ''">
|
||||
<li class="calendar-strip__day" :class="targetSessions.length > 0 && open && index == targetSessions[0].day ? 'active' : ''" :style="'animation-delay: ' + index * 0.03 + 's'">
|
||||
<button
|
||||
:class="date.full === today ? 'today' : ''"
|
||||
:disabled="date.sessions.length === 0 ? true : false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue