Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit fc29ee8

Browse files
committed
Documentation tweaks
1 parent 677d60b commit fc29ee8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project mostly adheres to [Semantic Versioning](https://semver.org/spec
1010
**Release `2.1.0-beta.1` was deprecated and reverted, so the following changes were made from release `2.0.1`:**
1111

1212
### Changed
13-
- Changed the implementation of the `default` duration, timing function, and delay to prevent generating base styles that change the value of `transition-property`, `transition-duration`, `transition-timing-function`, and `transition-delay` on all elements, in order to prevent conflicts with libraries that don’t expect these properties to have a value different from their CSS-defined default
13+
- Changed the implementation of the `default` duration, timing function, and delay to prevent generating base styles that change the value of `transition-property`, `transition-duration`, `transition-timing-function`, and `transition-delay` on all elements, in order to prevent conflicts with libraries that don’t expect these properties to differ from their CSS-defined default
1414
- Base styles targeting all elements are still generated if a `default` duration, timing function, and/or delay is set (which is the case by default: the `default` duration is `250ms`), but they define custom properties that are very unlikely to conflict with third-party libraries (e.g. `--transition-duration`); these are then used to set actual properties on elements that have a `transition-[property]` or `transition-[duration]` class
1515
- As a result, it is now possible to only use a transition duration utility (e.g. `transition-500`) on an element to make it transition all its properties; no need for `transition-all` anymore, since the default value of `transition-property` is already `all`
1616

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ The default configuration generates the following CSS:
9292
transition-duration: 250ms;
9393
transition-duration: var(--transition-duration);
9494
}
95-
.transition-[key] {
96-
transition-property: [value];
95+
.transition-[property-key] {
96+
transition-property: [property-value];
97+
/* when the default duration is a value other than zero: */
9798
transition-duration: [default-duration];
9899
transition-duration: var(--transition-duration);
99100
/* when the default timing function is a value other than "ease": */
@@ -115,9 +116,10 @@ The default configuration generates the following CSS:
115116
transition-duration: 100ms;
116117
transition-duration: var(--transition-duration);
117118
}
118-
.transition-[key] {
119-
--transition-duration: [value];
120-
transition-duration: [value];
119+
.transition-[duration-key] {
120+
transition-duration: [duration-value];
121+
/* when the default duration is a value other than zero: */
122+
--transition-duration: [duration-value];
121123
transition-duration: var(--transition-duration);
122124
/* when the default timing function is a value other than "ease": */
123125
transition-timing-function: [default-timing-function];
@@ -134,10 +136,10 @@ The default configuration generates the following CSS:
134136
.transition-ease {
135137
transition-timing-function: ease;
136138
}
137-
.transition-[key] {
138-
transition-timing-function: [value];
139+
.transition-[timing-function-key] {
140+
transition-timing-function: [timing-function-value];
139141
/* when the default timing function is a value other than "ease": */
140-
--transition-timing-function: [value];
142+
--transition-timing-function: [timing-function-value];
141143
transition-timing-function: var(--transition-timing-function);
142144
}
143145

0 commit comments

Comments
 (0)