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

Alipay font awesome icon css class name is fa-alipay and CSS Content Code is \f642.

Alipay font awesome icon is part of brands icons.

Alipay font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Alipay font awesome icon CSS class name

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

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

Alipay icon has 1 icon style i.e.,brands. We need to append icon style class fab.

<i class='fab fa-alipay'></i>

Output:

Alipay font awesome icon CSS Content Code

We can display Alipay font awesome icon using it’s CSS Content Code \f642

Use the following HTML code

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

Apply CSS code

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

.Alipay::before {
   font: var(--fa-font-brands);
    content: ' \f642';
 }</style>

Output:

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

    Alipay font awesome icon SVG

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

    <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 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="M377.74 32H70.26C31.41 32 0 63.41 0 102.26v307.48C0 448.59 31.41 480 70.26 480h307.48c38.52 0 69.76-31.08 70.26-69.6-45.96-25.62-110.59-60.34-171.6-88.44-32.07 43.97-84.14 81-148.62 81-70.59 0-93.73-45.3-97.04-76.37-3.97-39.01 14.88-81.5 99.52-81.5 35.38 0 79.35 10.25 127.13 24.96 16.53-30.09 26.45-60.34 26.45-60.34h-178.2v-16.7h92.08v-31.24H88.28v-19.01h109.44V92.34h50.92v50.42h109.44v19.01H248.63v31.24h88.77s-15.21 46.62-38.35 90.92c48.93 16.7 100.01 36.04 148.62 52.74V102.26C447.83 63.57 416.43 32 377.74 32zM47.28 322.95c.99 20.17 10.25 53.73 69.93 53.73 52.07 0 92.58-39.68 117.87-72.9-44.63-18.68-84.48-31.41-109.44-31.41-67.45 0-79.35 33.06-78.36 50.58z"/></svg>
    
    

    Use the following HTML code

    <p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 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="M377.74 32H70.26C31.41 32 0 63.41 0 102.26v307.48C0 448.59 31.41 480 70.26 480h307.48c38.52 0 69.76-31.08 70.26-69.6-45.96-25.62-110.59-60.34-171.6-88.44-32.07 43.97-84.14 81-148.62 81-70.59 0-93.73-45.3-97.04-76.37-3.97-39.01 14.88-81.5 99.52-81.5 35.38 0 79.35 10.25 127.13 24.96 16.53-30.09 26.45-60.34 26.45-60.34h-178.2v-16.7h92.08v-31.24H88.28v-19.01h109.44V92.34h50.92v50.42h109.44v19.01H248.63v31.24h88.77s-15.21 46.62-38.35 90.92c48.93 16.7 100.01 36.04 148.62 52.74V102.26C447.83 63.57 416.43 32 377.74 32zM47.28 322.95c.99 20.17 10.25 53.73 69.93 53.73 52.07 0 92.58-39.68 117.87-72.9-44.63-18.68-84.48-31.41-109.44-31.41-67.45 0-79.35 33.06-78.36 50.58z"/></svg>
     Alipay displayed using SVG</p>
    

    Apply CSS code

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

    Output:

    This Alipay displayed using SVG

    Change Alipay font awesome icon size

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

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

    Output:

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

    Alipay font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

    For example Alipay 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='fab fa-alipay fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fab fa-alipay 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

    Alipay font awesome icon Border

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

    <i class='fab fa-alipay fa-border fa-3x'></i>
    

    Output:

    Pull Alipay font awesome icon To the left

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

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

    Output:

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

    Pull Alipay font awesome icon To the left

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

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

    Output:

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

    Animate Alipay font awesome icon

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

    <i class='fab fa-alipay fa-spin fa-3x'></i>
    

    Output:

    Animate Alipay font awesome icon with steps

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

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

    <i class='fab fa-alipay fa-spin fa-pulse fa-3x'></i>
    

    Output:

    Rotate Alipay font awesome icon

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

    Where ‘x’ represents degree of rotation.

    <div>
    <i class='fab fa-alipay fa-3x'>R</i>normal<br/><br/>
    <i class='fab fa-alipay fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/> 
    <i class='fab fa-alipay fa-rotate-180  fa-3x'>R</i> fa-rotate-180<br/><br/> 
    <i class='fab fa-alipay 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 Alipay font awesome icon

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

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

    Output:

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

    Combine Alipay 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 Alipay 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='fab fa-alipay fa-stack-1x'></i>
        </span>
          Alipay on fa-square<br>
        <span class='fa-stack fa-lg'>
            <i class='fas fa-circle fa-stack-2x'></i>
            <i class='fab fa-alipay fa-stack-1x fa-inverse'></i>
        </span>
          Alipay on fa-circle<br>
    
        <span class='fa-stack fa-lg'>
            <i class='fab fa-alipay fa-stack-1x'></i>
            <i class='fas fa-ban fa-stack-2x'></i>
        </span>
          Alipay on fa-ban
    </div>
    

    Output:

    Alipay on fa-square
    Alipay on fa-circle
    Alipay on fa-ban
    Avatar

    Arunkumar Gudelli

    Liked this post? Subscribe