zoom

API Methods

setState

Attribute Names

data-state

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

        Semantic SVG

        data-state

        Toggles between its zoom-in and zoom-out states

        • in

          <img data-state="in" data-src="zoom.svg" class="iconic" alt="zoom" />
          
        • out

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

        Options/Examples

        setState(state)

        in
        out

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

        • zoom-out

        was copied for yah