Text style 013
Style ID: 013
Splits the text into phrases at commas, '|' or line breaks and drops each phrase in from above on its own rounded pill, one after another, so they pile up with a slight tilt. A text without separators gets one pill per word. The pill colour is set with the 'pill-color' setting and the text colour with 'color'.
| Animation | Each pill falls from above the frame (650ms, easeOutBack) and lands with a small fixed tilt and sideways nudge, with a 140ms delay between pills. |
|---|---|
| Best for | Feature lists, tags, menus, benefits, keywords, short lists of 2 to 8 items. |
| Intro duration | 5 s |
Preview
Example
{
"type": "text",
"style": "013",
"text": "Desktop, Apps, Web fonts, Variable font",
"settings": {
"font-size": "6vw",
"font-family": "Oswald",
"color": "#2340D8",
"pill-color": "#FFFFFF",
"line-height": "1.3",
"text-align": "center"
},
"duration": 5
}Default settings
The settings object of a text element using style: "013" ships with these defaults. Any property you set on the element overrides the default.
| Property | Type | Default | Description |
|---|---|---|---|
vertical-position | string | center | Vertical position of the text block within the element area. |
horizontal-position | string | center | Horizontal position of the text block within the element area. |
font-size | string | 6vw | Font size. Use CSS units: px (e.g. '60px'), vw for responsive (e.g. '5vw'), or em. |
font-family | string | Oswald | Google Fonts family name (e.g. 'Inter', 'Roboto', 'Anton', 'Bebas Neue'). Any Google Font is available. |
color | string | #2340D8 | Text color. Hex (e.g. '#FFFFFF'), named color (e.g. 'white'), or rgba(). |
pill-color | string | #FFFFFF | Style 013 (Pills) only: the colour of the pill behind each phrase. Hex, named colour or rgba(). |
Common text style settings
All text styles accept the same CSS-like settings; only the entry animation differs. The properties below are common to every style.
| Property | Type | Default | Description |
|---|---|---|---|
font-size | string | 4vw | Font size. Use CSS units: px (e.g. '60px'), vw for responsive (e.g. '5vw'), or em. |
font-family | string | Inter | Google Fonts family name (e.g. 'Inter', 'Roboto', 'Anton', 'Bebas Neue'). Any Google Font is available. |
font-weight | string | 400 | Font weight: '100' to '900', or 'normal', 'bold'. |
color | string | #FFFFFF | Text color. Hex (e.g. '#FFFFFF'), named color (e.g. 'white'), or rgba(). |
text-align | string (enum) | center | Horizontal text alignment within the text box. Values: left, center, right |
vertical-position | string (enum) | center | Vertical position of the text block within the element area. Values: top, center, bottom |
horizontal-position | string (enum) | center | Horizontal position of the text block within the element area. Values: left, center, right |
text-shadow | string | — | CSS text-shadow for readability over backgrounds (e.g. '2px 2px rgba(33,33,33,0.5)'). |
letter-spacing | string | — | Space between letters (e.g. '0.1em', '2px'). Useful for uppercase or wide-spaced designs. |
line-height | string | — | Line height for multi-line text (e.g. '1.2em', '1.5'). |
margin | string | — | Margin around the text block (e.g. '3vw', '20px'). |
background-color | string | — | Background color behind each word/line of text. Especially effective with style 011 (text block). |
pill-color | string | #FFFFFF | Style 013 (Pills) only: the colour of the pill behind each phrase. Hex, named colour or rgba(). |