media

API Methods

setState

Attribute Names

data-state

Elements
    Properties
      Sizes
        SVG
        <img data-src="media.svg" class="iconic iconic-sm" alt="media">
        <img data-src="media.svg" class="iconic iconic-md" alt="media">
        <img data-src="media.svg" class="iconic iconic-lg" alt="media">
        
        Default Icon Font
        <span class="iconic iconic-sm" data-glyph="media-play" title="media play" aria-hidden="true"></span>
        <span class="iconic iconic-md" data-glyph="media-play" title="media play" aria-hidden="true"></span>
        <span class="iconic iconic-lg" data-glyph="media-play" title="media play" aria-hidden="true"></span>
        
        Bootstrap Icon Font
        <span class="iconic iconic-media-play iconic-sm" title="media play" aria-hidden="true"></span>
        <span class="iconic iconic-media-play iconic-md" title="media play" aria-hidden="true"></span>
        <span class="iconic iconic-media-play iconic-lg" title="media play" aria-hidden="true"></span>
        
        Foundation Icon Font
        <span class="fi-media-play iconic-sm" title="media play" aria-hidden="true"></span>
        <span class="fi-media-play iconic-md" title="media play" aria-hidden="true"></span>
        <span class="fi-media-play iconic-lg" title="media play" aria-hidden="true"></span>
        
        CSS

        Semantic SVG

        data-state

        Toggles between playback states

        • play

          <img data-state="play" data-src="media.svg" class="iconic" alt="media" />
          
        • pause

          <img data-state="pause" data-src="media.svg" class="iconic" alt="media" />
          
        • record

          <img data-state="record" data-src="media.svg" class="iconic" alt="media" />
          
        • stop

          <img data-state="stop" data-src="media.svg" class="iconic" alt="media" />
          
        Method name

        Options/Examples

        setState(state)

        play
        pause
        record
        stop

        Icon Font

        Iconic may be all about SVG, but it also comes with a killer font. For the full skinny, read our icon font and Bootstrap/Foundation guides.

        <!-- Default -->
        <span class="iconic" data-glyph="media-play" title="media play" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-media-play" title="media play" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-media-play" title="media play" aria-hidden="true"></span>
        
        • media-play

        • media-pause

        • media-record

        • media-stop

        was copied for yah