iphone

API Methods

setScreenshot

Attribute Names

data-screenshot

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

        Semantic SVG

        data-screenshot

        The URL of an image to appear in the iphone's screen space. Screenshot images will always fill 100% of the allotted space's width. If you want the screenshot to fit perfectly, use the specified aspect ratios below.

        • URL

          <img data-screenshot="image.png" data-src="iphone.svg" class="iconic" alt="iphone" />
          
        Method name

        Options

        setScreenshot(url)

        Any URL reference to PNG, JPG or GIF file.

        Screenshot sizing

        iphone-sm

        7:10 ratio
        7×10 exact pixels

        iphone-md

        13:23 ratio
        13×23 exact pixels

        iphone-lg

        27:47 ratio
        54×94 exact pixels

        iphone-lg x 2

        27:47 ratio
        108×188 exact pixels

        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="iphone" title="iphone" aria-hidden="true"></span>
        <!-- Bootstrap -->
        <span class="iconic iconic-iphone" title="iphone" aria-hidden="true"></span>
        <!-- Foundation -->
        <span class="fi-iphone" title="iphone" aria-hidden="true"></span>
        
        • iphone

        was copied for yah