@@ -29,6 +29,8 @@ import {
2929 componentSnippet ,
3030 introSnippet ,
3131 groupSnippet ,
32+ delaySnippet ,
33+ delayObjectSnippet ,
3234} from "./snippets" ;
3335
3436import classes from "./app.css" ;
@@ -69,7 +71,7 @@ const App: StatelessComponent<void> = () => (
6971 < div className = { classes . logoContainerFlex } >
7072 < Logo className = { classes . logo } /> < h1 className = { classes . logoText } > React CSS Transition</ h1 >
7173 </ div >
72- < p className = { classes . logoSubtext } > Take Control of your CSS Transitions</ p >
74+ < p className = { classes . logoSubtext } > Take Control of Your CSS Transitions</ p >
7375 < p className = { classes . githubButton } >
7476 < Button href = { githubURL } > Github</ Button >
7577 </ p >
@@ -178,9 +180,11 @@ const App: StatelessComponent<void> = () => (
178180 < section className = { classes . mainSection } >
179181 < h3 > Defining Transitions Using Inline Styles</ h3 >
180182 < p >
181- Transitions can be defined using inline styles. React CSS Transition contains a helper
182- called < code > transit</ code > to make defining transitions easier. The provided styles must be
183- already prefixed if you want to support legacy browsers.
183+ Transitions can be defined using inline styles. The provided styles must be already prefixed
184+ if you want to support legacy browsers. Reactt CSS Transition contains the
185+ helper < code > transit(value, duration, timingFunction, delay)</ code > which makes defining
186+ transitions easy. Both < code > duration</ code > and < code > delay</ code > accepts a numeric value
187+ in milliseconds.
184188 </ p >
185189 < SyntaxHighlighter language = "javascript" >
186190 { inlineStyleSnippet }
@@ -239,6 +243,30 @@ const App: StatelessComponent<void> = () => (
239243 </ div >
240244 </ section >
241245
246+ < section className = { classes . mainSection } >
247+ < h3 > Additional Transition Delay</ h3 >
248+ < p >
249+ < em >
250+ * Support is currently limited to inline styles defined using the < code > transit</ code > helper.
251+ This limitation will be removed in a coming release.
252+ </ em >
253+ </ p >
254+ < p >
255+ An additional amount of delay in milliseconds can be added to the transitions using
256+ the < code > transitionDelay</ code > property. A numeric value will be applied
257+ to both the entering and leaving transition.
258+ </ p >
259+ < SyntaxHighlighter language = "javascript" >
260+ { delaySnippet }
261+ </ SyntaxHighlighter >
262+ < p >
263+ You can also specify a separate delay for each transition.
264+ </ p >
265+ < SyntaxHighlighter language = "javascript" >
266+ { delayObjectSnippet }
267+ </ SyntaxHighlighter >
268+ </ section >
269+
242270 < section className = { classes . mainSection } >
243271 < h3 > The Completion Event</ h3 >
244272 < p >
0 commit comments