Full story compositions showing how to combine multiple stickers.
Flex Column Layout
The recommended layout: one flex column holds every sticker, the browser spaces them with `gap` and the padding keeps them inside the safe zone. Stickers never overlap, whatever their text.
Flex Layout!
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:#2c1654"></div>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:300px 60px;display:flex;flex-direction:column;align-items:center;gap:40px">
<p style="margin:0;font-family:'Instagram Sans Condensed';font-size:100px;color:#ffffff;font-weight:bold">
Flex Layout!
</p>
<insta-hashtag hashtag="flexbox" style="transform:rotate(-3deg)"></insta-hashtag>
<insta-mention username="shoplocal" design="rainbow" style="transform:rotate(2deg)"></insta-mention>
<insta-link url="https://example.com/shop" text="Shop Now" style="transform:rotate(3deg)"></insta-link>
<insta-question question="What should we post next?" color="purple"></insta-question>
</div>
</insta-story>
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:#2c1654"></div>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:300px 60px;display:flex;flex-direction:column;align-items:center;gap:40px">
<p style="margin:0;font-family:'Instagram Sans Condensed';font-size:100px;color:#ffffff;font-weight:bold">
Flex Layout!
</p>
<insta-hashtag hashtag="flexbox" style="transform:rotate(-3deg)" />
<insta-mention username="shoplocal" design="rainbow" style="transform:rotate(2deg)" />
<insta-link url="https://example.com/shop" text="Shop Now" style="transform:rotate(3deg)" />
<insta-question question="What should we post next?" color="purple" />
</div>
</insta-story>
Background Image
An <img> fills the story as photo background. The flex column is anchored at the bottom with `justify-content:flex-end`, so the upper part of the photo stays visible.
The background draws the button and the handle in its own style, invisible stickers make them tappable: each one is placed over what it belongs to with the same `left`, `top`, `width` and `height`.
New Collection
@shoplocal
Shop now
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:#0f3d3e"></div>
<p style="position:absolute;left:0;top:400px;width:100%;margin:0;text-align:center;font-family:'Instagram Sans Condensed';font-size:120px;color:#ffffff;font-weight:bold">
New Collection
</p>
<p style="position:absolute;left:290px;top:620px;width:500px;height:120px;margin:0;line-height:120px;text-align:center;font-family:'Instagram Sans Condensed';font-size:70px;color:#f2c14e">
@shoplocal
</p>
<insta-mention username="shoplocal" design="invisible" style="position:absolute;left:290px;top:620px;width:500px;height:120px"></insta-mention>
<div style="position:absolute;left:240px;top:1300px;width:600px;height:160px;border-radius:80px;background:#f2c14e;color:#0f3d3e;font-family:'Instagram Sans Condensed';font-size:80px;font-weight:bold;line-height:160px;text-align:center">
Shop now
</div>
<insta-link url="https://example.com/shop" design="invisible" style="position:absolute;left:240px;top:1300px;width:600px;height:160px"></insta-link>
</insta-story>
[:insta-story
[:div {:style "position:absolute;top:0;left:0;width:100%;height:100%;background:#0f3d3e"}]
[:p {:style "position:absolute;left:0;top:400px;width:100%;margin:0;text-align:center;font-family:'Instagram Sans Condensed';font-size:120px;color:#ffffff;font-weight:bold"}
"New Collection"]
[:p {:style "position:absolute;left:290px;top:620px;width:500px;height:120px;margin:0;line-height:120px;text-align:center;font-family:'Instagram Sans Condensed';font-size:70px;color:#f2c14e"}
"@shoplocal"]
[:insta-mention {:username "shoplocal" :design "invisible" :style "position:absolute;left:290px;top:620px;width:500px;height:120px"}]
[:div {:style "position:absolute;left:240px;top:1300px;width:600px;height:160px;border-radius:80px;background:#f2c14e;color:#0f3d3e;font-family:'Instagram Sans Condensed';font-size:80px;font-weight:bold;line-height:160px;text-align:center"}
"Shop now"]
[:insta-link {:url "https://example.com/shop" :design "invisible" :style "position:absolute;left:240px;top:1300px;width:600px;height:160px"}]]
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:#0f3d3e"></div>
<p style="position:absolute;left:0;top:400px;width:100%;margin:0;text-align:center;font-family:'Instagram Sans Condensed';font-size:120px;color:#ffffff;font-weight:bold">
New Collection
</p>
<p style="position:absolute;left:290px;top:620px;width:500px;height:120px;margin:0;line-height:120px;text-align:center;font-family:'Instagram Sans Condensed';font-size:70px;color:#f2c14e">
@shoplocal
</p>
<insta-mention username="shoplocal" design="invisible" style="position:absolute;left:290px;top:620px;width:500px;height:120px" />
<div style="position:absolute;left:240px;top:1300px;width:600px;height:160px;border-radius:80px;background:#f2c14e;color:#0f3d3e;font-family:'Instagram Sans Condensed';font-size:80px;font-weight:bold;line-height:160px;text-align:center">
Shop now
</div>
<insta-link url="https://example.com/shop" design="invisible" style="position:absolute;left:240px;top:1300px;width:600px;height:160px" />
</insta-story>
Music
`<insta-music>` adds Instagram's music sticker. Storrito searches the `search-term` with the posting account right before the story is rendered and takes the first song Instagram finds, so name the song title and the artist. This page shows the search term and a gray cover as a placeholder; the story shows the found song's title, artist and cover, and plays its section for the length of the story. An image story with music becomes a 15 second video.
Now Playing
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(#6a3093,#a044ff)"></div>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:300px 60px;display:flex;flex-direction:column;align-items:center;gap:40px;justify-content:center">
<p style="margin:0;font-family:'Instagram Sans Condensed';font-size:110px;color:#ffffff;font-weight:bold">
Now Playing
</p>
<insta-music search-term="Beautiful Day U2" design="album-art"></insta-music>
<insta-hashtag hashtag="musicmonday"></insta-hashtag>
</div>
</insta-story>
<insta-story>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(#6a3093,#a044ff)"></div>
<div style="position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;padding:300px 60px;display:flex;flex-direction:column;align-items:center;gap:40px;justify-content:center">
<p style="margin:0;font-family:'Instagram Sans Condensed';font-size:110px;color:#ffffff;font-weight:bold">
Now Playing
</p>
<insta-music searchTerm="Beautiful Day U2" design="album-art" />
<insta-hashtag hashtag="musicmonday" />
</div>
</insta-story>
Absolute Positioning
Pixel-exact placement, for a sticker that has to sit on a specific spot of the background. You have to leave room for the rendered sticker sizes yourself: pill stickers are at most 177px tall, so a step of 220px leaves a gap of at least 43px.