Some
Like <blam-blam> but it only affects some of the elements selected using to.
- class
- Some
- extends
- Set
- tag
<some-blam>
Props
| name | type | default | description |
|---|---|---|---|
| min | number | 1 | The minimum number of elements to affect. |
| max | number | The maximum number of elements to affect. If not set (null), it is the total number of elements selected with |
|
| revert | boolean | false | In the case of |
| ramp | number | In beats. Where the |
|
| prop | string | null | Can be the name of a property (which may map to an |
| value | string | null | Set-derived elements support special |
| once | boolean | false | Whether to only handle the event one time. Interesting, compositionally, when paired with a low |
| robin | boolean | false | Only applies when using |
| mode | string | “events” | By default, Set-based elements just listens for events. Use |
| for | string | “blam any” | By default, ListenWatch-based elements listen for |
| from | string | A CSS selector representing all elements from which events will be listened to. If not set, the node array defaults to the element’s |
|
| to | string | A CSS selector representing all elements to affect in response to the event. If not set, the node array defaults to the element’s |
|
| bypass | boolean | false | Whether to stop responding to events as they happen. |
| chance | boolean | 1 | The probability that the |
Examples
Examples that use the Some element: