A complication that shows the phases of the moon via a rotating disc through an aperture in the dial. The four moon phases are new moon, first quarter, full moon, last quarter.
Moonphase Settings | Design Considerations | Moonphase Functionality
moonphase: {
id: string;
reverse?: boolean;
}
The DOM element ID of the Moonphase hand or disc.
Props | Required | Type | Default | Value(s) |
---|---|---|---|---|
id |
Yes | string | - | DOM Element ID |
By default, Horologist will rotate elements in a clockwise direction. Use the reverse
prop to
rotate the elements counter-clockwise.
Props | Required | Type | Default | Value(s) |
---|---|---|---|---|
reverse |
No | boolean | False | True / False |
When designing a Moonphase to work with Horologist, there are a few considerations to keep in mind.
- The Moonphase should be drawn at its starting position of a New Moon.
- Horologist does not assign any
transition-origin
properties. These must be defined manually.
The Moonphase display will be rotated relative to the current moon's position:
'New' | 'Waxing Crescent' | 'First Quarter' | 'Waxing Gibbous' | 'Full' | 'Waning Gibbous' | 'Last Quarter' | 'Waning Crescent';