Skip to main content

Interface: GIF

Hierarchy#

Properties#

caption#

• Optional caption: string

The image captions

Inherited from: Image.caption

Defined in: media/image.ts:51


captionLink#

• Optional captionLink: string

The link next to the captions

Inherited from: Image.captionLink

Defined in: media/image.ts:53


mp4#

• mp4: Image

Using the mp4 version of a GIF is in most cases beneficial because of better compression and smaller file sizes.

example

<!-- slow -->
<img src={image.native.url} alt={image.caption} />
<!-- better -->
<video autoplay loop muted>
<source src={image.mp4.native.url} type="video/mp4" />
</video>

Defined in: media/image.ts:75


native#

• native: Resolution

Inherited from: Image.native

Defined in: media/image.ts:57


resized#

• Optional resized: Resolution[]

Inherited from: Image.resized

Defined in: media/image.ts:58