Text With Inline Media
Text With Inline Media drops small images or videos into the middle of a line of text, where a word would otherwise sit. The result reads as one sentence with pictures in it, rather than a paragraph with an image next to it.
It works on a short, large line: a hero headline or a section opener. It does not work on body copy, where the media interrupts reading.
Writing the line
Write the text in Text Content and mark where each piece of media goes. Up to four can sit in one line, numbered in the order they appear.
Media Type decides what they are, for the whole element. It is one setting covering all four slots, so a line can hold images or videos but not a mixture of the two:
- Images Uploaded through the element, one slot per image.
- Videos Short MP4 clips, set through the Video #1 to Video #4 fields. A looping clip in place of a word is the treatment most of the demos use.
Settings
- Image Size Choice Six presets, combining a size with a crop: Small or Large, each as Uncropped, Square or Horizontal Rect. Square is the usual choice for a word-sized image.
- Image Roundness Choice From square corners through to a full pill at 50px.
- Animation Effect Choice None, Scroll Reveal, Circle Mask Reveal or Circle Crop, controlling how the media arrives as the line scrolls into view.
- Text Color and Custom Line Height The type around the media. Line height usually needs raising, since the media sits taller than the text.
- Inherit Typography From Choice Which heading level's typography the line borrows, so it matches the rest of the page without setting a font size by hand.
- Margin NumberResponsive. Set a different value for desktop, tablet and phone. Space around each piece of media.
The media keeps its size while the text wraps, so a line that reads well on a desktop can leave an image stranded on its own line on a phone. Check it at a narrow width and use the phone margins to tighten the spacing.