mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added page-transition-duration
This commit is contained in:
parent
70d64bac69
commit
739c110b4a
@ -9,7 +9,8 @@
|
|||||||
"layoutMargin": "unset",
|
"layoutMargin": "unset",
|
||||||
"layoutPadding": "10px",
|
"layoutPadding": "10px",
|
||||||
"text-color-white": "#d2d2d2",
|
"text-color-white": "#d2d2d2",
|
||||||
"text-color-black": "#000000"
|
"text-color-black": "#000000",
|
||||||
|
"page-transition-duration": "150ms"
|
||||||
},
|
},
|
||||||
"defaultVariant": "light",
|
"defaultVariant": "light",
|
||||||
"variants": {
|
"variants": {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import * as antd from "antd"
|
|
||||||
import loadable from "@loadable/component"
|
import loadable from "@loadable/component"
|
||||||
|
|
||||||
import "./index.less"
|
import "./index.less"
|
||||||
@ -28,12 +27,35 @@ export default [
|
|||||||
{
|
{
|
||||||
"id": "reduceAnimations",
|
"id": "reduceAnimations",
|
||||||
"storaged": true,
|
"storaged": true,
|
||||||
"group": "aspect",
|
"group": "animations",
|
||||||
"component": "Switch",
|
"component": "Switch",
|
||||||
"icon": "MdOutlineAnimation",
|
"icon": "MdOutlineSlowMotionVideo",
|
||||||
"title": "Reduce animation",
|
"title": "Reduce animation",
|
||||||
"experimental": true
|
"experimental": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "pageTransitionDuration",
|
||||||
|
"storaged": true,
|
||||||
|
"group": "animations",
|
||||||
|
"component": "Slider",
|
||||||
|
"icon": "MdOutlineSpeed",
|
||||||
|
"title": "Page transition duration",
|
||||||
|
"description": "Change the duration of the page transition animation.",
|
||||||
|
"props": {
|
||||||
|
min: 0,
|
||||||
|
max: 1000,
|
||||||
|
step: 50,
|
||||||
|
tooltip: {
|
||||||
|
formatter: (value) => `${value / 1000}s`
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"emitEvent": "modifyTheme",
|
||||||
|
"emissionValueUpdate": (value) => {
|
||||||
|
return {
|
||||||
|
"page-transition-duration": `${value}ms`
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "auto_darkMode",
|
"id": "auto_darkMode",
|
||||||
"experimental": true,
|
"experimental": true,
|
||||||
|
@ -15,6 +15,10 @@
|
|||||||
"title": "Aspect",
|
"title": "Aspect",
|
||||||
"icon": "Eye"
|
"icon": "Eye"
|
||||||
},
|
},
|
||||||
|
"animations": {
|
||||||
|
"title": "Animations",
|
||||||
|
"icon": "MdOutlineAnimation"
|
||||||
|
},
|
||||||
"security.account": {
|
"security.account": {
|
||||||
"title": "Account Security",
|
"title": "Account Security",
|
||||||
"icon": "Lock"
|
"icon": "Lock"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.fade-transverse-active {
|
.fade-transverse-active {
|
||||||
transition: all 250ms;
|
transition: all var(--page-transition-duration);
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user