eye

API Methods

setState

Attribute Names

data-state

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

        Semantic SVG

        data-state

        Toggles the eye between its open and closed states

        • open

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

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

        Options/Examples

        setState(state)

        open
        closed

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

        • eye-closed

        was copied for yah