mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 12:01:33 +02:00
✨ feat: add reducemotion config option to optimize performance
- Add `reduceMotion` option in theme config to improve performance - Update Button component to support reduced animations - Modify GSAP animation logic to adapt to the new configuration - Update documentation to reflect the new feature
This commit is contained in:
parent
120ebbbb3f
commit
4d247cfb93
12 changed files with 77 additions and 42 deletions
3
src/types/index.d.ts
vendored
3
src/types/index.d.ts
vendored
|
@ -33,8 +33,9 @@ export interface ThemeConfig {
|
|||
moreLocales: typeof supportedLangs[number][]
|
||||
fontStyle: 'sans' | 'serif'
|
||||
dateFormat: 'YYYY-MM-DD' | 'MM-DD-YYYY' | 'DD-MM-YYYY' | 'MONTH DAY YYYY' | 'DAY MONTH YYYY'
|
||||
katex: boolean
|
||||
toc: boolean
|
||||
katex: boolean
|
||||
reduceMotion: boolean
|
||||
}
|
||||
|
||||
comment: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue