New Power Transforms in Font Awesome 5 - Blog Awesome (2024)

“With great power comes great responsibility. ”

Late last week, we released Font Awesome 5 Alpha 6 to folks who have purchased Font Awesome Pro (backers and pre-orders get early access). There’s tons of new stuff to check out, like our all-new SVG framework (with a teensy dash of JavaScript we make SVG icons super easy and super powerful) and every single icon is completely re-made from scratch. All the great things from FA4 have been re-written and re-designed. They’re better in every way, and we could not be happier with how things are turning out.

Speaking of just a dash of JavaScript in our SVG framework, we’ve got a great new set of features that are going to super-charge your icons and give you infinite flexibility.

FA5’s New Power Transforms 💪🏻

In FA5, we’re deprecating FA4’s icon stacks in favor of Layers. Basically, you can layer as many icons as you want on top of each other. Combined with our all-new, super-awesome Power Transforms and a bit of know-how, you can create all sorts of amazing new combinations.

FA5’s Power Transforms are used by adding our handy-dandydata-fa-transform attribute to your icons. It allows you to:

  • Grow and shrink icon sizes (data-fa-transform="grow-x" and data-fa-transform="shrink-x").
  • Nudge your icons up, down, left, and right (data-fa-transform="up-x", data-fa-transform="right-x", data-fa-transform="down-x", and data-fa-transform="left-x").
  • Flip and rotate your icons (data-fa-transform="flip-h", data-fa-transform="flip-v", and data-fa-transform="rotate-x").

And you can chain them all together to come up with some pretty interesting results.

We pull this all off with just a teensy dash of performant JavaScript and CSS transforms. This isn’t the primary way you’ll want to control icon size, but is crazy useful when it comes to stacking.

Example: Layering — Size + Position

Layer as many icons as you like and tweak their size and position super easily. These aren’t limited to certain sizes or increments, unlike FA4. Anything you can imagine, you can do. And quickly.

New Power Transforms in Font Awesome 5 - Blog Awesome (1)
<span class="fa-layers"> <i class="fa fa-square"></i> <i class="fa fa-crosshairs fa-inverse" data-fa-transform="shrink-12 up-4"></i></span><span class="fa-layers"> <i class="fa fa-square"></i> <i class="fa fa-crosshairs fa-inverse" data-fa-transform="shrink-12 right-4"></i></span><span class="fa-layers"> <i class="fa fa-square"></i> <i class="fa fa-crosshairs fa-inverse" data-fa-transform="shrink-12 down-4"></i></span><span class="fa-layers"> <i class="fa fa-square"></i> <i class="fa fa-crosshairs fa-inverse" data-fa-transform="shrink-12 left-4"></i></span>

Units on grow-, shrink-, up-, right-, down-, and left- are in 1/16 units of the total icon height, as Font Awesome 5 is designed on an all-new 16px grid. Since whole numbers and even decimals are allowed, you’ll have pixel-level control of icon size and position in any situation.

Check out the CodePen.

Example: Flip & Rotate

Easily flip and rotate your icons however you like without FA4’s limitations of 90° increments.

New Power Transforms in Font Awesome 5 - Blog Awesome (2)
<i class="fa fa-magic" data-fa-transform="flip-v"></i>
<i class="fa fa-magic" data-fa-transform="flip-h"></i>
<i class="fa fa-magic" data-fa-transform="flip-v flip-h"></i><i class="fa fa-magic" data-fa-transform="rotate-45"></i>
<i class="fa fa-magic" data-fa-transform="rotate-90"></i>
<i class="fa fa-magic" data-fa-transform="rotate-180"></i>
<i class="fa fa-magic" data-fa-transform="rotate-270"></i>
<i class="fa fa-magic" data-fa-transform="rotate-300"></i>

Units on rotate are in degrees and can be any positive number (thanks, JavaScript!) Flip can be horizontal, vertical, or both.

Check out the CodePen.

Example: Layering — Custom Social Logos

Let’s say we wanted to make a set of custom social logos for the footer of our website. We can easily layer a fa-circle icon with our social logos. And Power Transforms give us the ability to completely tweak the size and fine-tune the position so we get them juuuuuust right.

In this example, we’ve tweaked just about every social logo individually to make them look just the way we want. Also notice that we’re using a regular ole fa-question-circle placed directly inline next to the rest. Layered next to regular icons just work. Easy peasy.

New Power Transforms in Font Awesome 5 - Blog Awesome (3)
<span class="fa-layers fa-5x">
<i class="fa fa-circle"></i>
<i class="fab fa-facebook-f fa-inverse" data-fa-transform="shrink-3.5 down-1.6 right-1.25"></i>
</span>
<span class="fa-layers fa-5x">
<i class="fa fa-circle"></i>
<i class="fab fa-twitter fa-inverse" data-fa-transform="shrink-6 down-.25 right-.25"></i>
</span>
<span class="fa-layers fa-5x">
<i class="fa fa-circle"></i>
<i class="fab fa-codepen fa-inverse" data-fa-transform="shrink-5"></i>
</span>
<span class="fa-layers fa-5x">
<i class="fa fa-circle"></i>
<i class="fab fa-youtube-play fa-inverse" data-fa-transform="shrink-6.5"></i>
</span>
<i class="fa fa-question-circle fa-5x"></i>

Check out the CodePen.

Wanna try out Power Transforms?

If you want to try out Power Transforms and get an early look at everything we’re doing in Font Awesome 5, you’ll need to pre-order. You’ll also get the super-easy, super-powerful all-new SVG Framework, 1,000+ more icons, and tons more. And for a limited time, all pre-orders also get ALL Kickstarter stretch goals, including more 46 icon packs (to be designed)!

👉🏻 Pre-order Font Awesome Pro.

Release Timeline

We’ve released FA5 Alpha 6 with a whole bunch of goodies. Next up is Alpha 7 this week, then we’ll be cutting the first Beta just a week or two after in early August. Stay tuned!

New Power Transforms in Font Awesome 5 - Blog Awesome (2024)

FAQs

How do I upgrade Font Awesome 5 to 6? ›

Upgrade from Version 5 When Self-Hosting
  1. Locate and remove Any Version 5 Files From Your Project. Loading two different versions of Font Awesome may cause conflicts, so you'll need to find the location of the old files and remove them. ...
  2. Download and Install Version 6. ...
  3. Update Version 5 References to Point to Version 6 Files.

What is the difference between Font Awesome 4 and Font Awesome 5? ›

So, there is no difference between fas an fa that both applies the Solid icon style. Regarding the differences between Font Awesome 4 and 5 : 5 icons styles (Solid, Brands, Regular, Light and Duotone) but only the first two are free (Solid and Brands) some icons have new names.

Is Font Awesome deprecated? ›

Administrators must fix their code before the release where Font Awesome will be removed. The message is: "FontAwesome is deprecated as of 11.2 and will not be supported in 12.0.

Who owns Font Awesome? ›

Dave Gandy, CEO

I make Font Awesome and other things.

When did Font Awesome 6 come out? ›

Font Awesome 6 is the latest version which was released in February 2022. Users will be able to upload their own icons and receive more icons on top of the existing ones from Font Awesome 5.

Is Font Awesome 6 backwards compatible? ›

Backward Compatible by Default! Now that you're pointing to Version 6 files, any Version 4 icons, style names, or custom CSS rules with Font Awesome @font-face rules will automatically update to their Version 6 counterparts!

What is better than Font Awesome? ›

FlatIcon is one of the best font awesome alternatives. Here, you can access a huge over 13.9 million vector icons for your next project launch. It's also the biggest database for obtaining free font icons. Moreover, it is free in SVG, PNG, PSD, EPS, and BASE 64 formats.

What is the most agreeable font? ›

Analysis showed Baskerville (above) was the most agreeable font with Helvetica and Comic Sans being the least agreeable: Speaking to Fast Company three years after the experiment, now the essay has been put into print as a Pentagram Paper, Morris told how the experiment has changed his life.

What is the most favorable font? ›

Best fonts for reading
  • Times New Roman. For many, Times New Roman has become the default font for print and web documents. ...
  • Verdana. ...
  • Arial. ...
  • Tahoma. ...
  • Helvetica. ...
  • Calibri. ...
  • Verdana. ...
  • Lucida Sans (PC) or Lucida Grande (Mac)
Sep 8, 2021

How do I increase Font Awesome? ›

To increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x , fa-3x , fa-4x , or fa-5x classes. If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height.

Why are some Font Awesome 6 icons not showing? ›

Some icons are only available in Font Awesome Pro. Double-check that the icon you want is in the version of Font Awesome you have installed and are using. Also, make sure you are using and referencing the right font/typeface for the job in your text layers, i.e. “Font Awesome 6 Pro” is needed to render pro icons.

How do I get Font Awesome 5? ›

To use the Free Font Awesome 5 icons, you can choose to download the Font Awesome library, or you can sign up for an account at Font Awesome, and get a code (called KIT CODE) to use when you add Font Awesome to your web page.

How do I install more fonts? ›

Add a font
  1. Download the font files. ...
  2. If the font files are zipped, unzip them by right-clicking the .zip folder and then clicking Extract. ...
  3. Right-click the fonts you want, and click Install.
  4. If you're prompted to allow the program to make changes to your computer, and if you trust the source of the font, click Yes.

Top Articles
Catalyst pore space exploration using fluorescence and X-ray microscopy techniques
Southwest Eye Center Cottonwood
Penn Foster 1098 T Form
Min Player Speed Threshold Madden 22
Can ETH reach 10k in 2024?
Craigslist Personals Kenosha Wi
Breckie Hill Fapello
Dr Abiose Land O Lakes
Chuze Fitness Tucson Az Ajo
Norris Funeral Home Chatham Va Obituaries
Hannah Palmer Of Leaked
Tyler Perry's House of Payne | Tyler Perry's House Of Payne: 10 Episodes, News, Videos and Cast | BET US
ERIC CLAPTON – CROSSROADS - 4 CD Set - 73 tracks Rare • EUR 9,51
7Starhd Movies
Oldeuboi Showtimes Near Marcus Ronnie's Cinema
SunTrust Shareholders Approve Merger with BB&T to Form Truist
Cnp Tx Venmo
866-383-1604
Farsi1Tv Hd
Gotcha Paper 2022 Danville Va
Nyc Probation Officer Exam
Bmcc Dean's List
Mr Biggs Soul Sonic Force Net Worth
Keyc Weather Forecast
Renfield Showtimes Near Paragon Theaters - Coral Square
Yankee Candle Store Locator
Trcc Commnet
Splatoon ALL STAR COLLECTION Shiver - Juguete de peluche S, juego de... • EUR 38,30
Kohls Ukg Workforce
Lucky Dragon Net
Craigslist Ct Apartments For Rent
Not Elaine from Seinfeld, Julia Louis-Dreyfus Missed Playing 1 TV Character the Most From Her Pre-Marvel Era
Craigs List High Rockies
Dtm Urban Dictionary
Driving Directions To Target Near Me
Elizabeth's Pizza Menu Walkertown
Black Adam Showtimes Near Marcus Valley Grand Cinema
Six Sigma: The Definitive Guide - SM Insight
The Shoppes At Zion Directory
The Victors Boards2Go
Aabb Investorshub
Alcon National Driving Center Inc
Appsanywhere Mst
Hotels Near 9300 Sw 72Nd St Miami Fl 33173
Tiger Island Hunting Club
Pick34 Free Zone
OSCE | Internet Governance Forum
Thotalife
Mytp Saba Cloud
Peoplesgamezgiftexchange House Of Fun Coins
What Time Is First Light Tomorrow Morning
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 6325

Rating: 5 / 5 (70 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.