Skip to content

Commit

Permalink
Add motion.duration configuration (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz authored Nov 21, 2024
1 parent 1b69557 commit 183e89a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/js/motion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 183e89a

Please sign in to comment.