Reduce Stroke of Font-Awesome Icons

Developer
Size
2,923 Kb
Views
6,072

How do I make an reduce stroke of font-awesome icons?

Thinning the chunky nature of Font Awesome. The only solution I could find was to use -webkit-text-stroke, so this is not a cross browser solution. What is a reduce stroke of font-awesome icons? How do you make a reduce stroke of font-awesome icons? This script and codes were developed by Mackdoyle on 26 December 2022, Monday.

Reduce Stroke of Font-Awesome Icons Previews

Reduce Stroke of Font-Awesome Icons - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Reduce Stroke of Font-Awesome Icons</title>
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet"> <link rel='stylesheet prefetch' href='css/naogx.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body>
<div class="wrapper"> <h2>Lighten Stroke Weight of Font Awesome Icons (Webkit Only)</h2> <p>The stroke width of <code>-webkit-text-stroke</code> is distributed from the outside of the character's stroke. Setting the width that is wider than the original will start to overlap the stroke. And when it is set to the same color as the background, is creates the appearance of a lighter stroke</p> <div class=" block inline"> <div class="icon expand-icon"></div> Original </div> <div class="block inline"> <div class="icon outline expand-icon"></div> Example of a 1px text-stroke </div> <div class="block inline"> <div class="icon overlap expand-icon"></div> Example showing how text-stroke overlaps the character stroke. </div> <div class="block inline"> <div class="icon light expand-icon"></div> Setting text-stroke to the backgroung color creates the final effect </div>
</div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>

Reduce Stroke of Font-Awesome Icons - Script Codes CSS Codes

.icon{ font-family:'FontAwesome'; margin:1.2rem; font-size:3.2em; color: rgba(0,0,0, 0.8); -webkit-font-smoothing: antialiased;
}
.icon .expand-icon:after{ content: "\f150";
}
.light{ -webkit-text-stroke: 4px white;
}
.supersized{ font-size: 10rem;
}
.expand-icon:after{ content: "\f150";
}
.outline{ -webkit-text-stroke: 1px red;
}
.overlap{ -webkit-text-stroke: 4px rgba(255,0,0,1);
}
.block { display: inline-block; vertical-align:top; text-align: center; width: 20%; height: 150px; border: 1px solid #999; padding: 1%; margin:1%;
}
Reduce Stroke of Font-Awesome Icons - Script Codes
Reduce Stroke of Font-Awesome Icons - Script Codes
Home Page Home
Developer Mackdoyle
Username mackdoyle
Uploaded December 26, 2022
Rating 3
Size 2,923 Kb
Views 6,072
Do you need developer help for Reduce Stroke of Font-Awesome Icons?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Mackdoyle (mackdoyle) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!