Apple-Pay font awesome icon Usage,CSS Class Name,SVG & CSS Content Code

Apple-Pay font awesome icon css class name is fa-apple-pay and CSS Content Code is \f415.

Apple-Pay font awesome icon is part of brands icons.

Apple-Pay font awesome icon usage

We can display Apple-Pay font awesome icon using 3 different ways depending upon our requirement.

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Apple-Pay font awesome icon CSS class name

To display Apple-Pay font awesome icon, add predefined class name i.e.,fa-apple-pay (with prefix fa-) to the i tag.

And we need to add corresponding font awesome icon style for the Apple-Pay icon.

Apple-Pay icon has 1 icon style i.e.,brands. We need to append icon style class fab.

<i class='fab fa-apple-pay'></i>

Output:

Apple-Pay font awesome icon CSS Content Code

We can display Apple-Pay font awesome icon using it’s CSS Content Code \f415

Use the following HTML code

<li><span class='Apple-Pay fontawesomeicon'></span>Apple-Pay</li>

Apply CSS code

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

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

Output:

.fontawesomeicon::before { display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; } .Apple-Pay::before { font: var(--fa-font-brands); content: ' \f415'; }
  • Apple-Pay
  • For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/

    Apple-Pay font awesome icon SVG

    Use the following icon SVG to display Apple-Pay 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="M116.9 158.5c-7.5 8.9-19.5 15.9-31.5 14.9-1.5-12 4.4-24.8 11.3-32.6 7.5-9.1 20.6-15.6 31.3-16.1 1.2 12.4-3.7 24.7-11.1 33.8m10.9 17.2c-17.4-1-32.3 9.9-40.5 9.9-8.4 0-21-9.4-34.8-9.1-17.9.3-34.5 10.4-43.6 26.5-18.8 32.3-4.9 80 13.3 106.3 8.9 13 19.5 27.3 33.5 26.8 13.3-.5 18.5-8.6 34.5-8.6 16.1 0 20.8 8.6 34.8 8.4 14.5-.3 23.6-13 32.5-26 10.1-14.8 14.3-29.1 14.5-29.9-.3-.3-28-10.9-28.3-42.9-.3-26.8 21.9-39.5 22.9-40.3-12.5-18.6-32-20.6-38.8-21.1m100.4-36.2v194.9h30.3v-66.6h41.9c38.3 0 65.1-26.3 65.1-64.3s-26.4-64-64.1-64h-73.2zm30.3 25.5h34.9c26.3 0 41.3 14 41.3 38.6s-15 38.8-41.4 38.8h-34.8V165zm162.2 170.9c19 0 36.6-9.6 44.6-24.9h.6v23.4h28v-97c0-28.1-22.5-46.3-57.1-46.3-32.1 0-55.9 18.4-56.8 43.6h27.3c2.3-12 13.4-19.9 28.6-19.9 18.5 0 28.9 8.6 28.9 24.5v10.8l-37.8 2.3c-35.1 2.1-54.1 16.5-54.1 41.5.1 25.2 19.7 42 47.8 42zm8.2-23.1c-16.1 0-26.4-7.8-26.4-19.6 0-12.3 9.9-19.4 28.8-20.5l33.6-2.1v11c0 18.2-15.5 31.2-36 31.2zm102.5 74.6c29.5 0 43.4-11.3 55.5-45.4L640 193h-30.8l-35.6 115.1h-.6L537.4 193h-31.6L557 334.9l-2.8 8.6c-4.6 14.6-12.1 20.3-25.5 20.3-2.4 0-7-.3-8.9-.5v23.4c1.8.4 9.3.7 11.6.7z"/></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="M116.9 158.5c-7.5 8.9-19.5 15.9-31.5 14.9-1.5-12 4.4-24.8 11.3-32.6 7.5-9.1 20.6-15.6 31.3-16.1 1.2 12.4-3.7 24.7-11.1 33.8m10.9 17.2c-17.4-1-32.3 9.9-40.5 9.9-8.4 0-21-9.4-34.8-9.1-17.9.3-34.5 10.4-43.6 26.5-18.8 32.3-4.9 80 13.3 106.3 8.9 13 19.5 27.3 33.5 26.8 13.3-.5 18.5-8.6 34.5-8.6 16.1 0 20.8 8.6 34.8 8.4 14.5-.3 23.6-13 32.5-26 10.1-14.8 14.3-29.1 14.5-29.9-.3-.3-28-10.9-28.3-42.9-.3-26.8 21.9-39.5 22.9-40.3-12.5-18.6-32-20.6-38.8-21.1m100.4-36.2v194.9h30.3v-66.6h41.9c38.3 0 65.1-26.3 65.1-64.3s-26.4-64-64.1-64h-73.2zm30.3 25.5h34.9c26.3 0 41.3 14 41.3 38.6s-15 38.8-41.4 38.8h-34.8V165zm162.2 170.9c19 0 36.6-9.6 44.6-24.9h.6v23.4h28v-97c0-28.1-22.5-46.3-57.1-46.3-32.1 0-55.9 18.4-56.8 43.6h27.3c2.3-12 13.4-19.9 28.6-19.9 18.5 0 28.9 8.6 28.9 24.5v10.8l-37.8 2.3c-35.1 2.1-54.1 16.5-54.1 41.5.1 25.2 19.7 42 47.8 42zm8.2-23.1c-16.1 0-26.4-7.8-26.4-19.6 0-12.3 9.9-19.4 28.8-20.5l33.6-2.1v11c0 18.2-15.5 31.2-36 31.2zm102.5 74.6c29.5 0 43.4-11.3 55.5-45.4L640 193h-30.8l-35.6 115.1h-.6L537.4 193h-31.6L557 334.9l-2.8 8.6c-4.6 14.6-12.1 20.3-25.5 20.3-2.4 0-7-.3-8.9-.5v23.4c1.8.4 9.3.7 11.6.7z"/></svg>
     Apple-Pay displayed using SVG</p>
    

    Apply CSS code

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

    Output:

    .fontawesomesvg {width: 1em; height: 1em; vertical-align: -.125em; }

    This Apple-Pay displayed using SVG

    Change Apple-Pay font awesome icon size

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

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

    Output:

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

    Apple-Pay font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

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

    Apple-Pay font awesome icon Border

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

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

    Output:

    Pull Apple-Pay font awesome icon To the left

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

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

    Output:

    ... The text after Apple-Pay Icon will be displayed on the right side of the icon.

    Pull Apple-Pay font awesome icon To the left

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

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

    Output:

    ... The text after Apple-Pay Icon will be displayed on the left side of the icon.

    Animate Apple-Pay font awesome icon

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

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

    Output:

    Animate Apple-Pay font awesome icon with steps

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

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

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

    Output:

    Rotate Apple-Pay font awesome icon

    To rotate Apple-Pay font awesome icon, Use fa-rotate-x class

    Where ‘x’ represents degree of rotation.

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

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

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

    Output:

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

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

    Output:

    Apple-Pay on fa-square
    Apple-Pay on fa-circle
    Apple-Pay on fa-ban