Handshake font awesome icon Usage,CSS Class Name,SVG & CSS Content Code

Handshake font awesome icon css class name is fa-handshake and CSS Content Code is \f2b5.

Handshake font awesome icon has 2 style types i.e., regular(far), solid(fas)

Handshake font awesome icon usage

We can display Handshake font awesome icon using 3 different ways depending upon our requirement.

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Handshake font awesome icon CSS class name

To display Handshake font awesome icon, add predefined class name i.e.,fa-handshake (with prefix fa-) to the i tag.

And we need to add corresponding font awesome icon style for the Handshake icon.

Handshake font awesome icon has 2 icon styles. To Display regular icon use far class. To Display solid icon use fas class.

<i class='far fa-handshake'></i>
<i class='fas fa-handshake'></i>

Output:

Handshake font awesome icon CSS Content Code

We can display Handshake font awesome icon using it’s CSS Content Code \f2b5

Use the following HTML code

<li><span class='Handshake fontawesomeicon'></span>Handshake</li>

Apply CSS code

<style> 
.fontawesomeicon::before {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
 }

.Handshake::before {
   font: var(--fa-font-solid);
    content: ' \f2b5';
 }</style>

Output:

  • Handshake
  • For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/

    Handshake font awesome icon SVG

    Use the following icon SVG to display Handshake font awesome icon.

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8V128h-.7l-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48V352h28.2l91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM96 128H0V352c0 17.7 14.3 32 32 32H64c17.7 0 32-14.3 32-32V128zM48 352c-8.8 0-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16s-7.2 16-16 16zM544 128V352c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V128H544zm64 208c0 8.8-7.2 16-16 16s-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--! Font Awesome Free 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M323.4 85.2l-96.8 78.4c-16.1 13-19.2 36.4-7 53.1c12.9 17.8 38 21.3 55.3 7.8l99.3-77.2c7-5.4 17-4.2 22.5 2.8s4.2 17-2.8 22.5l-20.9 16.2L512 316.8V128h-.7l-3.9-2.5L434.8 79c-15.3-9.8-33.2-15-51.4-15c-21.8 0-43 7.5-60 21.2zm22.8 124.4l-51.7 40.2C263 274.4 217.3 268 193.7 235.6c-22.2-30.5-16.6-73.1 12.7-96.8l83.2-67.3c-11.6-4.9-24.1-7.4-36.8-7.4C234 64 215.7 69.6 200 80l-72 48V352h28.2l91.4 83.4c19.6 17.9 49.9 16.5 67.8-3.1c5.5-6.1 9.2-13.2 11.1-20.6l17 15.6c19.5 17.9 49.9 16.6 67.8-2.9c4.5-4.9 7.8-10.6 9.9-16.5c19.4 13 45.8 10.3 62.1-7.5c17.9-19.5 16.6-49.9-2.9-67.8l-134.2-123zM96 128H0V352c0 17.7 14.3 32 32 32H64c17.7 0 32-14.3 32-32V128zM48 352c-8.8 0-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16s-7.2 16-16 16zM544 128V352c0 17.7 14.3 32 32 32h32c17.7 0 32-14.3 32-32V128H544zm64 208c0 8.8-7.2 16-16 16s-16-7.2-16-16s7.2-16 16-16s16 7.2 16 16z"/></svg>
     Handshake displayed using SVG</p>
    

    Apply CSS code

    
      <style>
        .fontawesomesvg {width: 1em;
          height: 1em;
          vertical-align: -.125em;
        }
      </style>
    
    

    Output:

    This Handshake displayed using SVG

    Change Handshake font awesome icon size

    To increase Handshake font awesome icon size, use the fa-lg(33 % increase), fa-2x, fa-3x, fa-4x, or fa-5x classes along with icon class \f2b5. Increase in icon size will be relative to their parent container.

    <i class='fas fa-handshake fa-lg'>fa-lg</i><br/>
    <i class='fas fa-handshake fa-2x'>fa-2x</i><br/>
    <i class='fas fa-handshake fa-3x'>fa-3x</i><br/>
    <i class='fas fa-handshake fa-4x'>fa-4x</i><br/>
    <i class='fas fa-handshake fa-5x'>fa-5x</i><br/>
    
    

    Output:

    fa-lg
    fa-2x
    fa-3x
    fa-4x
    fa-5x

    Handshake font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

    For example Handshake icon and home icon may not have same height and width.

    So to display two icons with fixed width and height we can use fa-fw class.

    <i style='border:1px solid;' class='fas fa-handshake fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-handshake fa-3x'></i>Normal<br/>
    <i style='border:1px solid;' class='fas fa-home fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fas fa-home fa-3x'></i>Normal<br/>
    
    

    Output:

    Fixed WidthNormal
    Fixed WidthNormal

    Handshake font awesome icon Border

    To add border to Handshake font awesome icon, use fa-border class.

    <i class='fas fa-handshake fa-border fa-3x'></i>
    

    Output:

    Pull Handshake font awesome icon To the left

    To pull Handshake icon to the left of the container use fa-pull-left class.

    <div style='width: 200px;'>
    <i class='fas fa-handshake fa-pull-left fa-3x'></i>
      ... The text after Handshake Icon will be displayed on the right side of the icon.
    </div>
    <div style = 'clear: both;'></div>
    

    Output:

    ... The text after Handshake Icon will be displayed on the right side of the icon.

    Pull Handshake font awesome icon To the left

    To pull Handshake icon to the right of the container use fa-pull-right class.

    <div style='width: 200px;'>
    <i class='fas fa-handshake fa-pull-right fa-3x'></i>
      ... The text after Handshake Icon will be displayed on the left side of the icon.
    </div>
    <div style = 'clear: both;'></div>
    

    Output:

    ... The text after Handshake Icon will be displayed on the left side of the icon.

    Animate Handshake font awesome icon

    To animate Handshake font awesome icon, use fa-spin class.

    <i class='fas fa-handshake fa-spin fa-3x'></i>
    

    Output:

    Animate Handshake font awesome icon with steps

    While animating the font awesome icon,We can rotate Handshake icon in 8 steps instead of uniform rotation.

    We can use fa-pulse icon along with fa-spin class.

    <i class='fas fa-handshake fa-spin fa-pulse fa-3x'></i>
    

    Output:

    Rotate Handshake font awesome icon

    To rotate Handshake font awesome icon, Use fa-rotate-x class

    Where ‘x’ represents degree of rotation.

    <div>
    <i class='fas fa-handshake fa-3x'>R</i>normal<br/><br/>
    <i class='fas fa-handshake fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/> 
    <i class='fas fa-handshake fa-rotate-180  fa-3x'>R</i> fa-rotate-180<br/><br/> 
    <i class='fas fa-handshake fa-rotate-270 fa-3x'>R</i> fa-rotate-270<br/><br/>
    </div>
    

    Output:

    Rnormal

    R fa-rotate-90

    R fa-rotate-180

    R fa-rotate-270

    Flip Handshake font awesome icon

    To flip Handshake font awesome icon horizontally and vertically use fa-flip-horizontal and fa-flip-vertical classes.

    <div>
    <i class='fas fa-handshake fa-3x'>F</i> Normal <br>
    <i class='fas fa-handshake fa-flip-horizontal fa-3x'>F</i> fa-flip-horizontal<br>
    <i class='fas fa-handshake fa-flip-vertical fa-3x'>F</i> fa-flip-vertical<br>
    </div>
    

    Output:

    F Normal
    F fa-flip-horizontal
    F fa-flip-vertical

    Combine Handshake font awesome icon with other font awesome icons

    In font awesome icons,using stacking we can combine multiple icons and display it as one icon.

    To do that use the fa-stack class on the parent, the fa-stack-1x for the regularly sized icon, and fa-stack-2x for the larger icon.

    And use class fa-inverse for an alternative icon color.

    In the below example, I am displaying Handshake font awesome icon on top of icons like fa-square,fa-circle and fa-ban.

    And used fa-inverse in the second example to invert the color of the icon.

    <div>
        <span class='fa-stack fa-lg'>
            <i class='far fa-square fa-stack-2x'></i>
            <i class='fas fa-handshake fa-stack-1x'></i>
        </span>
          Handshake on fa-square<br>
        <span class='fa-stack fa-lg'>
            <i class='fas fa-circle fa-stack-2x'></i>
            <i class='fas fa-handshake fa-stack-1x fa-inverse'></i>
        </span>
          Handshake on fa-circle<br>
    
        <span class='fa-stack fa-lg'>
            <i class='fas fa-handshake fa-stack-1x'></i>
            <i class='fas fa-ban fa-stack-2x'></i>
        </span>
          Handshake on fa-ban
    </div>
    

    Output:

    Handshake on fa-square
    Handshake on fa-circle
    Handshake on fa-ban
    Avatar

    Arunkumar Gudelli

    Liked this post? Subscribe