envelope

API Methods

setState

Attribute Names

data-state

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

        Semantic SVG

        data-state

        Toggles the envelope between its open and closed states

        • closed

          <img data-state="closed" data-src="envelope.svg" class="iconic" alt="envelope" />
          
        • open

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

        Options/Examples

        setState(state)

        closed
        open

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

        • envelope-open

        was copied for yah