mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-19 18:42:34 +00:00
Add motion.duration configuration (#846)
This commit is contained in:
parent
1b6955735d
commit
183e89ae1e
@ -628,6 +628,7 @@ quicklink:
|
|||||||
motion:
|
motion:
|
||||||
enable: true
|
enable: true
|
||||||
async: false
|
async: false
|
||||||
|
duration: 200
|
||||||
transition:
|
transition:
|
||||||
# All available transition variants: https://theme-next.js.org/animate/
|
# All available transition variants: https://theme-next.js.org/animate/
|
||||||
menu_item: fadeInDown
|
menu_item: fadeInDown
|
||||||
|
|||||||
@ -17,7 +17,7 @@ NexT.motion.integrator = {
|
|||||||
if (!CONFIG.motion.async) this.queue = [this.queue.flat()];
|
if (!CONFIG.motion.async) this.queue = [this.queue.flat()];
|
||||||
this.queue.forEach(sequence => {
|
this.queue.forEach(sequence => {
|
||||||
const timeline = window.anime.timeline({
|
const timeline = window.anime.timeline({
|
||||||
duration: 200,
|
duration: CONFIG.motion?.duration ?? 200,
|
||||||
easing : 'linear'
|
easing : 'linear'
|
||||||
});
|
});
|
||||||
sequence.forEach(item => {
|
sequence.forEach(item => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user