Archived docs Get your API Key
Get started
Tutorials
Guides
Reference
Help for coding agents
🤖 AI Assistant

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'.

AnimationEach 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 forFeature lists, tags, menus, benefits, keywords, short lists of 2 to 8 items.
Intro duration5 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.

PropertyTypeDefaultDescription
vertical-positionstringcenterVertical position of the text block within the element area.
horizontal-positionstringcenterHorizontal position of the text block within the element area.
font-sizestring6vwFont size. Use CSS units: px (e.g. '60px'), vw for responsive (e.g. '5vw'), or em.
font-familystringOswaldGoogle Fonts family name (e.g. 'Inter', 'Roboto', 'Anton', 'Bebas Neue'). Any Google Font is available.
colorstring#2340D8Text color. Hex (e.g. '#FFFFFF'), named color (e.g. 'white'), or rgba().
pill-colorstring#FFFFFFStyle 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.

PropertyTypeDefaultDescription
font-sizestring4vwFont size. Use CSS units: px (e.g. '60px'), vw for responsive (e.g. '5vw'), or em.
font-familystringInterGoogle Fonts family name (e.g. 'Inter', 'Roboto', 'Anton', 'Bebas Neue'). Any Google Font is available.
font-weightstring400Font weight: '100' to '900', or 'normal', 'bold'.
colorstring#FFFFFFText color. Hex (e.g. '#FFFFFF'), named color (e.g. 'white'), or rgba().
text-alignstring (enum)centerHorizontal text alignment within the text box. Values: left, center, right
vertical-positionstring (enum)centerVertical position of the text block within the element area. Values: top, center, bottom
horizontal-positionstring (enum)centerHorizontal position of the text block within the element area. Values: left, center, right
text-shadowstring—CSS text-shadow for readability over backgrounds (e.g. '2px 2px rgba(33,33,33,0.5)').
letter-spacingstring—Space between letters (e.g. '0.1em', '2px'). Useful for uppercase or wide-spaced designs.
line-heightstring—Line height for multi-line text (e.g. '1.2em', '1.5').
marginstring—Margin around the text block (e.g. '3vw', '20px').
background-colorstring—Background color behind each word/line of text. Especially effective with style 011 (text block).
pill-colorstring#FFFFFFStyle 013 (Pills) only: the colour of the pill behind each phrase. Hex, named colour or rgba().