Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 1.48 KB

amp-soundcloud.md

File metadata and controls

52 lines (37 loc) · 1.48 KB

amp-soundcloud

Displays a Soundcloud clip

Example Visual Mode:

<amp-soundcloud height=657
    layout="fixed-height"
    data-trackid="243169232"
    data-visual="true"></amp-soundcloud>

Example Classic Mode:

<amp-soundcloud height=657
    layout="fixed-height"
    data-trackid="243169232"
    data-color="ff5500"></amp-soundcloud>

Attributes

data-trackid

The ID of the track.

data-visual

Displays full width "Visual" mode.

data-color

Custom color override. Only works with "Classic" Mode. Will be ignored in "Visual" Mode.

width and height Layout is fixed-height and will fill all the available horizontal space. This is ideal for classic mode, but for visual-mode, height is recommended to be 300px, 450px or 600px, as per Soundcloud embed code. This will allow the clip's internal elements to resize properly on mobile.