Skip to content

krislorem/multi

Repository files navigation

multi 暗黑模式丝滑切换demo

效果参考 Element Plus 文档官网的暗黑切换动画,原理就是gsap圆形遮罩clip-path动画 + sass样式变量管理 + mix-blend-mode: difference 互补色,这样动画和样式过渡的就很丝滑。

演示效果

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build

Lint with ESLint

pnpm lint

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published