-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement basic configurations for motion related styles
This commit implements some basic configurations for motion related styles like animations inspired by "Material Designs" (1) great documentations and guidelines about motion speed (2). This includes values for speed like transition durations. It'll be used to set the CSS transition for the base background and font color within the `globals` CSS style module. References: (1) https://material.io (2) https://material.io/design/motion/speed.html GH-53
- Loading branch information
1 parent
244c758
commit c0e5f6f
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]> | ||
* Copyright (C) 2018-present Sven Greb <[email protected]> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file Provides motion related values like animations inspired by Material Design Guidelines. | ||
* @author Arctic Ice Studio <[email protected]> | ||
* @author Sven Greb <[email protected]> | ||
* @see https://material.io/design/motion/speed.html | ||
* @since 0.2.0 | ||
*/ | ||
|
||
import speed, { duration } from "./speed"; | ||
|
||
const motion = { speed }; | ||
|
||
export { speed, duration }; | ||
export default motion; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]> | ||
* Copyright (C) 2018-present Sven Greb <[email protected]> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file Provides motion speed values. | ||
* @author Arctic Ice Studio <[email protected]> | ||
* @author Sven Greb <[email protected]> | ||
* @see https://material.io/design/motion/speed.html | ||
* @since 0.2.0 | ||
*/ | ||
|
||
/** | ||
* The values for motion durations. | ||
* | ||
* @type {object} | ||
* @see @see https://material.io/design/motion/speed.html#duration | ||
* @since 0.2.0 | ||
*/ | ||
const duration = { | ||
unit: "s", | ||
transition: { | ||
base: { themeModeSwitch: 0.4 }, | ||
area: { large: 0.4 } | ||
} | ||
}; | ||
|
||
/** | ||
* The values for motion speed. | ||
* | ||
* @type {object} | ||
* @since 0.2.0 | ||
*/ | ||
const speed = { duration }; | ||
|
||
export { duration }; | ||
export default speed; |