ReferenceScripting APIStagefind
Stage.find
methodThe first mote of a class.
| Name | find |
|---|---|
| Kind | method of Stage |
| Called as | stage.find(…) |
| Since | 0.3 |
Syntax
find<M extends Mote>(cls: string | () => M): M | nullParameters
| Name | Type | Description |
|---|---|---|
cls | string | () => M | The class, or its name |
Returns
M | null: the mote, or null.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.