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

Dragon font awesome icon css class name is fa-dragon and CSS Content Code is \f6d5.

Dragon font awesome icon is part of solid icons.

Dragon font awesome icon usage

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

  1. Using CSS Class Name

  2. Using CSS Content Code

  3. Using SVG

Dragon font awesome icon CSS class name

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

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

Dragon icon has 1 icon style i.e.,solid. We need to append icon style class fas.

<i class='fas fa-dragon'></i>

Output:

Dragon font awesome icon CSS Content Code

We can display Dragon font awesome icon using it’s CSS Content Code \f6d5

Use the following HTML code

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

Apply CSS code

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

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

Output:

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

    Dragon font awesome icon SVG

    Use the following icon SVG to display Dragon 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="M352 124.5l-51.9-13c-6.5-1.6-11.3-7.1-12-13.8s2.8-13.1 8.7-16.1l40.8-20.4L294.4 28.8c-5.5-4.1-7.8-11.3-5.6-17.9S297.1 0 304 0H416h32 16c30.2 0 58.7 14.2 76.8 38.4l57.6 76.8c6.2 8.3 9.6 18.4 9.6 28.8c0 26.5-21.5 48-48 48H538.5c-17 0-33.3-6.7-45.3-18.7L480 160H448v21.5c0 24.8 12.8 47.9 33.8 61.1l106.6 66.6c32.1 20.1 51.6 55.2 51.6 93.1C640 462.9 590.9 512 530.2 512H496 432 32.3c-3.3 0-6.6-.4-9.6-1.4C13.5 507.8 6 501 2.4 492.1C1 488.7 .2 485.2 0 481.4c-.2-3.7 .3-7.3 1.3-10.7c2.8-9.2 9.6-16.7 18.6-20.4c3-1.2 6.2-2 9.5-2.2L433.3 412c8.3-.7 14.7-7.7 14.7-16.1c0-4.3-1.7-8.4-4.7-11.4l-44.4-44.4c-30-30-46.9-70.7-46.9-113.1V181.5v-57zM512 72.3c0-.1 0-.2 0-.3s0-.2 0-.3v.6zm-1.3 7.4L464.3 68.1c-.2 1.3-.3 2.6-.3 3.9c0 13.3 10.7 24 24 24c10.6 0 19.5-6.8 22.7-16.3zM130.9 116.5c16.3-14.5 40.4-16.2 58.5-4.1l130.6 87V227c0 32.8 8.4 64.8 24 93H112c-6.7 0-12.7-4.2-15-10.4s-.5-13.3 4.6-17.7L171 232.3 18.4 255.8c-7 1.1-13.9-2.6-16.9-9s-1.5-14.1 3.8-18.8L130.9 116.5z"/></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="M352 124.5l-51.9-13c-6.5-1.6-11.3-7.1-12-13.8s2.8-13.1 8.7-16.1l40.8-20.4L294.4 28.8c-5.5-4.1-7.8-11.3-5.6-17.9S297.1 0 304 0H416h32 16c30.2 0 58.7 14.2 76.8 38.4l57.6 76.8c6.2 8.3 9.6 18.4 9.6 28.8c0 26.5-21.5 48-48 48H538.5c-17 0-33.3-6.7-45.3-18.7L480 160H448v21.5c0 24.8 12.8 47.9 33.8 61.1l106.6 66.6c32.1 20.1 51.6 55.2 51.6 93.1C640 462.9 590.9 512 530.2 512H496 432 32.3c-3.3 0-6.6-.4-9.6-1.4C13.5 507.8 6 501 2.4 492.1C1 488.7 .2 485.2 0 481.4c-.2-3.7 .3-7.3 1.3-10.7c2.8-9.2 9.6-16.7 18.6-20.4c3-1.2 6.2-2 9.5-2.2L433.3 412c8.3-.7 14.7-7.7 14.7-16.1c0-4.3-1.7-8.4-4.7-11.4l-44.4-44.4c-30-30-46.9-70.7-46.9-113.1V181.5v-57zM512 72.3c0-.1 0-.2 0-.3s0-.2 0-.3v.6zm-1.3 7.4L464.3 68.1c-.2 1.3-.3 2.6-.3 3.9c0 13.3 10.7 24 24 24c10.6 0 19.5-6.8 22.7-16.3zM130.9 116.5c16.3-14.5 40.4-16.2 58.5-4.1l130.6 87V227c0 32.8 8.4 64.8 24 93H112c-6.7 0-12.7-4.2-15-10.4s-.5-13.3 4.6-17.7L171 232.3 18.4 255.8c-7 1.1-13.9-2.6-16.9-9s-1.5-14.1 3.8-18.8L130.9 116.5z"/></svg>
     Dragon 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 Dragon displayed using SVG

    Change Dragon font awesome icon size

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

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

    Output:

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

    Dragon font awesome icon with Fixed Width

    All the font awesome icons does not have same width.

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

    Dragon font awesome icon Border

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

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

    Output:

    Pull Dragon font awesome icon To the left

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

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

    Output:

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

    Pull Dragon font awesome icon To the left

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

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

    Output:

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

    Animate Dragon font awesome icon

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

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

    Output:

    Animate Dragon font awesome icon with steps

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

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

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

    Output:

    Rotate Dragon font awesome icon

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

    Where ‘x’ represents degree of rotation.

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

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

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

    Output:

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

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

    Output:

    Dragon on fa-square
    Dragon on fa-circle
    Dragon on fa-ban