mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Add motion.duration configuration (#846)
This commit is contained in:
parent
1b6955735d
commit
183e89ae1e
@ -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
|
||||
|
||||
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user