Add motion.duration configuration (#846)

This commit is contained in:
Hyogeun Oh 2024-11-21 13:41:12 +09:00 committed by GitHub
parent 1b6955735d
commit 183e89ae1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -628,6 +628,7 @@ quicklink:
motion:
enable: true
async: false
duration: 200
transition:
# All available transition variants: https://theme-next.js.org/animate/
menu_item: fadeInDown

View File

@ -17,7 +17,7 @@ NexT.motion.integrator = {
if (!CONFIG.motion.async) this.queue = [this.queue.flat()];
this.queue.forEach(sequence => {
const timeline = window.anime.timeline({
duration: 200,
duration: CONFIG.motion?.duration ?? 200,
easing : 'linear'
});
sequence.forEach(item => {