@@ -57,7 +57,7 @@ A range of different scenarios for each animation component. [Looking for compon
5757
5858Transitioning the same element from one place to another.
5959
60- - [ Move] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FFLIPMove &selectedStory=Default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel )
60+ - [ Move] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FMove &selectedStory=Default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel )
6161- [ CrossFadeMove] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FCrossFadeMove&selectedStory=Default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel )
6262- [ ConcealMove] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FConcealMove&selectedStory=TargetHeight&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel )
6363- [ RevealMove] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FRevealMove&selectedStory=TargetHeight&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel )
@@ -155,19 +155,19 @@ import Baba from 'yubaba';
155155< / Baba> ;
156156```
157157
158- #### Target
158+ #### FocalTarget
159159
160- [ Docs] ( https://yubaba.netlify.com/typedoc/classes/target .html ) | [ Props] ( https://yubaba.netlify.com/typedoc/interfaces/targetprops.html )
160+ [ Docs] ( https://yubaba.netlify.com/typedoc/classes/focaltarget .html ) | [ Props] ( https://yubaba.netlify.com/typedoc/interfaces/targetprops.html )
161161
162162Used to explicitly mark the focal element,
163163only a handful of animations require this component to be used,
164164for example [ Reveal] ( #reveal ) `.
165165
166166``` jsx
167- import Baba , { Target } from ' yubaba' ;
167+ import Baba , { FocalTarget } from ' yubaba' ;
168168
169169< Baba name= " target" >
170- < Target > {({ ref }) => < div ref= {ref} / > }< / Target >
170+ < FocalTarget > {({ ref }) => < div ref= {ref} / > }< / FocalTarget >
171171< / Baba> ;
172172```
173173
@@ -199,15 +199,15 @@ import { Collector } from 'yubaba';
199199
200200Transitioning visually similar elements from one place to another.
201201
202- #### Move ([ example] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FFLIPMove &selectedStory=Default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel ) )
202+ #### Move ([ example] ( https://yubaba.netlify.com/?selectedKind=yubaba%2FMove &selectedStory=Default&full=0&addons=1&stories=1&panelRight=1&addonPanel=storybook%2Fnotes%2Fpanel ) )
203203
204- [ Docs] ( https://yubaba.netlify.com/typedoc/classes/flipmove .html ) | [ Props] ( https://yubaba.netlify.com/typedoc/interfaces/flipmoveprops .html )
204+ [ Docs] ( https://yubaba.netlify.com/typedoc/classes/Move .html ) | [ Props] ( https://yubaba.netlify.com/typedoc/interfaces/Moveprops .html )
205205
206206Will transition the destination element ** from** the origin element position.
207207
208208``` jsx
209209// origin-element.js
210- import Baba , { FLIPMove as Move } from ' yubaba' ;
210+ import Baba , { Move } from ' yubaba' ;
211211
212212< Baba name= " move" >
213213 < Move> {baba => < div {... baba} / > }< / Move>
@@ -277,13 +277,13 @@ import Baba, { Reveal, Target } from 'yubaba';
277277< / Baba> ;
278278
279279// destination-element.js
280- import Baba , { Target , Noop } from ' yubaba' ;
280+ import Baba , { FocalTarget , Noop } from ' yubaba' ;
281281
282282< Baba name= " reveal" >
283283 < Noop>
284284 {baba => (
285285 < div {... baba}>
286- < Target > {target => < div {... target} / > }< / Target >
286+ < FocalTarget > {target => < div {... target} / > }< / FocalTarget >
287287 < / div>
288288 )}
289289 < / Noop>
@@ -307,13 +307,13 @@ import Baba, { RevealMove } from 'yubaba';
307307< / Baba> ;
308308
309309// destination-element.js
310- import Baba , { Target , Noop } from ' yubaba' ;
310+ import Baba , { FocalTarget , Noop } from ' yubaba' ;
311311
312312< Baba name= " reveal-move" >
313313 < Noop>
314314 {baba => (
315315 < div {... baba}>
316- < Target > {target => < div {... target} / > }< / Target >
316+ < FocalTarget > {target => < div {... target} / > }< / FocalTarget >
317317 < / div>
318318 )}
319319 < / Noop>
@@ -326,17 +326,17 @@ import Baba, { Target, Noop } from 'yubaba';
326326
327327Useful for transitioning from a child to a parent,
328328will shrink from the container to the focal element.
329- Requires the use of the [ Target ] ( #target ) component to specify the focal element.
329+ Requires the use of the [ FocalTarget ] ( #focaltarget ) component to specify the focal element.
330330
331331``` jsx
332332// origin-element.js
333- import Baba , { Target , ConcealMove } from ' yubaba' ;
333+ import Baba , { FocalTarget , ConcealMove } from ' yubaba' ;
334334
335335< Baba name= " conceal-move" >
336336 < ConcealMove>
337337 {baba => (
338338 < div {... baba}>
339- < Target > {target => < div {... target} / > }< / Target >
339+ < FocalTarget > {target => < div {... target} / > }< / FocalTarget >
340340 < / div>
341341 )}
342342 < / ConcealMove>
0 commit comments