Playstation font awesome icon Usage,CSS Class Name,SVG & CSS Content Code
Playstation
font awesome icon css class name is fa-playstation
and CSS Content Code is \f3df
.
Playstation
font awesome icon is part of brands icons.
Playstation
font awesome icon usage
We can display Playstation
font awesome icon using 3 different ways depending upon our requirement.
Using CSS Class Name
Using CSS Content Code
Using SVG
Playstation
font awesome icon CSS class name
To display Playstation
font awesome icon, add predefined class name i.e.,fa-playstation
(with prefix fa-
) to the i
tag.
And we need to add corresponding font awesome icon style for the Playstation
icon.
Playstation
icon has 1 icon style i.e.,brands.
We need to append icon style class fab
.
<i class='fab fa-playstation'></i>
Output:
Playstation
font awesome icon CSS Content Code
We can display Playstation
font awesome icon using it’s CSS Content Code \f3df
Use the following HTML code
<li><span class='Playstation fontawesomeicon'></span>Playstation</li>
Apply CSS code
<style>
.fontawesomeicon::before {
display: inline-block;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
.Playstation::before {
font: var(--fa-font-brands);
content: ' \f3df';
}</style>
Output:
.fontawesomeicon::before { display: inline-block; text-rendering: auto; -webkit-font-smoothing: antialiased; } .Playstation::before { font: var(--fa-font-brands); content: ' \f3df'; }For the detailed tutorial visit https://www.angularjswiki.com/fontawesome/csscontentcode/
Playstation
font awesome icon SVG
Use the following icon SVG to display Playstation
font awesome icon.
<svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 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="M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"/></svg>
Use the following HTML code
<p>This <svg class='fontawesomesvg' xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 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="M570.9 372.3c-11.3 14.2-38.8 24.3-38.8 24.3L327 470.2v-54.3l150.9-53.8c17.1-6.1 19.8-14.8 5.8-19.4-13.9-4.6-39.1-3.3-56.2 2.9L327 381.1v-56.4c23.2-7.8 47.1-13.6 75.7-16.8 40.9-4.5 90.9.6 130.2 15.5 44.2 14 49.2 34.7 38 48.9zm-224.4-92.5v-139c0-16.3-3-31.3-18.3-35.6-11.7-3.8-19 7.1-19 23.4v347.9l-93.8-29.8V32c39.9 7.4 98 24.9 129.2 35.4C424.1 94.7 451 128.7 451 205.2c0 74.5-46 102.8-104.5 74.6zM43.2 410.2c-45.4-12.8-53-39.5-32.3-54.8 19.1-14.2 51.7-24.9 51.7-24.9l134.5-47.8v54.5l-96.8 34.6c-17.1 6.1-19.7 14.8-5.8 19.4 13.9 4.6 39.1 3.3 56.2-2.9l46.4-16.9v48.8c-51.6 9.3-101.4 7.3-153.9-10z"/></svg>
Playstation 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 Playstation displayed using SVG
Change Playstation
font awesome icon size
To increase Playstation
font awesome icon size, use the fa-lg(33 % increase)
, fa-2x
, fa-3x
, fa-4x
, or fa-5x
classes along with icon class \f3df.
Increase in icon size will be relative to their parent container.
<i class='fab fa-playstation fa-lg'>fa-lg</i><br/>
<i class='fab fa-playstation fa-2x'>fa-2x</i><br/>
<i class='fab fa-playstation fa-3x'>fa-3x</i><br/>
<i class='fab fa-playstation fa-4x'>fa-4x</i><br/>
<i class='fab fa-playstation fa-5x'>fa-5x</i><br/>
Output:
fa-lgfa-2x
fa-3x
fa-4x
fa-5x
Playstation
font awesome icon with Fixed Width
All the font awesome icons does not have same width.
For example Playstation
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-playstation fa-fw fa-3x'></i>Fixed Width<i style='border:1px solid;' class='fab fa-playstation 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 WidthNormalFixed WidthNormal
Playstation
font awesome icon Border
To add border to Playstation
font awesome icon, use fa-border
class.
<i class='fab fa-playstation fa-border fa-3x'></i>
Output:
Pull Playstation
font awesome icon To the left
To pull Playstation
icon to the left of the container use fa-pull-left
class.
<div style='width: 200px;'>
<i class='fab fa-playstation fa-pull-left fa-3x'></i>
... The text after Playstation Icon will be displayed on the right side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Pull Playstation
font awesome icon To the left
To pull Playstation
icon to the right of the container use fa-pull-right
class.
<div style='width: 200px;'>
<i class='fab fa-playstation fa-pull-right fa-3x'></i>
... The text after Playstation Icon will be displayed on the left side of the icon.
</div>
<div style = 'clear: both;'></div>
Output:
Animate Playstation
font awesome icon
To animate Playstation
font awesome icon, use fa-spin
class.
<i class='fab fa-playstation fa-spin fa-3x'></i>
Output:
Animate Playstation
font awesome icon with steps
While animating the font awesome icon,We can rotate Playstation
icon in 8 steps instead of uniform rotation.
We can use fa-pulse
icon along with fa-spin
class.
<i class='fab fa-playstation fa-spin fa-pulse fa-3x'></i>
Output:
Rotate Playstation
font awesome icon
To rotate Playstation
font awesome icon, Use fa-rotate-x
class
Where ‘x’ represents degree of rotation.
<div>
<i class='fab fa-playstation fa-3x'>R</i>normal<br/><br/>
<i class='fab fa-playstation fa-rotate-90 fa-3x'>R</i> fa-rotate-90<br/><br/>
<i class='fab fa-playstation fa-rotate-180 fa-3x'>R</i> fa-rotate-180<br/><br/>
<i class='fab fa-playstation fa-rotate-270 fa-3x'>R</i> fa-rotate-270<br/><br/>
</div>
Output:
R fa-rotate-90
R fa-rotate-180
R fa-rotate-270
Flip Playstation
font awesome icon
To flip Playstation
font awesome icon horizontally and vertically use fa-flip-horizontal
and fa-flip-vertical
classes.
<div>
<i class='fab fa-playstation fa-3x'>F</i> Normal <br>
<i class='fab fa-playstation fa-flip-horizontal fa-3x'>F</i> fa-flip-horizontal<br>
<i class='fab fa-playstation fa-flip-vertical fa-3x'>F</i> fa-flip-vertical<br>
</div>
Output:
F fa-flip-horizontal
F fa-flip-vertical
Combine Playstation
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 Playstation
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-playstation fa-stack-1x'></i>
</span>
Playstation on fa-square<br>
<span class='fa-stack fa-lg'>
<i class='fas fa-circle fa-stack-2x'></i>
<i class='fab fa-playstation fa-stack-1x fa-inverse'></i>
</span>
Playstation on fa-circle<br>
<span class='fa-stack fa-lg'>
<i class='fab fa-playstation fa-stack-1x'></i>
<i class='fas fa-ban fa-stack-2x'></i>
</span>
Playstation on fa-ban
</div>
Output:
Playstation on fa-circle
Playstation on fa-ban