Skip to content

Commit e6ae838

Browse files
committed
adding meta details, glow-black examples
1 parent b47bc67 commit e6ae838

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

index.htm

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8-
<title>fa5-power-transforms-css Test Page</title>
7+
8+
<title>fa5-power-transforms-css - Test Page</title>
9+
<meta name="description" content="A CSS implementation of the Power Transform functionality in Font Awesome 5">
10+
<meta name="keywords" content="Font Awesome 5, Power Transforms, CSS, Bootstrap 3">
911

1012
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
1113
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
@@ -17,6 +19,27 @@ <h1>fa5-power-transforms-css Test Page</h1>
1719

1820
<a href="https://github.com/cityssm/fa5-power-transforms-css"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png" alt="Fork me on GitHub"></a>
1921

22+
<div class="alert alert-success">
23+
<span class="fa-7x fa-layers fa-pull-right" style="color:#000">
24+
<i class="fas fa-circle" data-fa-transform="shrink-3 up-3" style="color:#ff0"></i>
25+
<i class="far fa-grin-beam" data-fa-transform="shrink-3 up-3"></i>
26+
<i class="fas fa-thumbs-up" data-fa-transform="shrink-10 right-4 down-1 glow-black rotate--20" style="color:#ff0"></i>
27+
<i class="fas fa-thumbs-down" data-fa-transform="shrink-10 left-4 down-1 glow-black rotate-200" style="color:#ff0"></i>
28+
</span>
29+
<p>
30+
Font Awesome 5 introduces a feature called Power Transforms,
31+
which opens developers up to limitless customizations of their icons.
32+
The problem is, these features are only available to users of the SVG + JS version.
33+
What about the Web Fonts users?
34+
</p>
35+
<p>
36+
This project attempts to recreate the key features of Font Awesome 5 Power Transforms using straight CSS,
37+
while keeping the same syntax as Font Awesome 5. Just drop in a little extra CSS and enjoy!
38+
</p>
39+
</div>
40+
41+
<hr />
42+
2043
<h2>Rotating and Flipping</h2>
2144

2245
<p>
@@ -25,7 +48,8 @@ <h2>Rotating and Flipping</h2>
2548

2649
<p class="alert alert-info">
2750
<strong>Difference:</strong>
28-
Font Awesome 5 Power Transforms rotations do not rotate the background. In the CSS solution, the background is rotated as well, as seen in the 30 degree rotations.
51+
Font Awesome 5 Power Transforms rotations do not rotate the background.
52+
In the CSS solution, the background is rotated as well, as seen in the 30 degree rotations.
2953
</p>
3054

3155
<div class="fa-4x">
@@ -338,29 +362,26 @@ <h2>More Examples</h2>
338362
<div class="col-sm-4">
339363
<div class="panel panel-default">
340364
<div class="panel-heading text-center">
341-
Using <code>-webkit-text-stroke</code>
365+
Using <code>glow-black</code>
342366
</div>
343367
<div class="panel-body">
344368
<div class="text-center">
345369
<span class="fa-layers fa-fw fa-4x">
346-
<i class="fas fa-play" data-fa-transform="rotate-30 shrink-1" style="color:#ff6;-webkit-text-stroke:3px #000"></i>
370+
<i class="fas fa-play" data-fa-transform="rotate-30 shrink-1 glow-black" style="color:#ff6"></i>
347371
<i class="fas fa-exclamation" data-fa-transform="shrink-10 left-1 up-1"></i>
348372
</span>
349373

350374
<span class="fa-layers fa-fw fa-4x">
351375

352-
<i class="fas fa-truck-monster" data-fa-transform="up-1" style="color:#0f3;-webkit-text-stroke:2px #000;"></i>
376+
<i class="fas fa-truck-monster" data-fa-transform="up-1 glow-black" style="color:#0f3"></i>
353377
<i class="fas fa-circle" data-fa-transform="shrink-7 down-2 left-4" style="color:#000;"></i>
354-
<i class="fas fa-cog fa-spin" data-fa-transform="shrink-7 down-2 left-4" style="color:#333;-webkit-text-stroke:2px #000;"></i>
378+
<i class="fas fa-cog fa-spin" data-fa-transform="shrink-7 down-2 left-4 glow-black" style="color:#333"></i>
355379
<i class="fas fa-circle" data-fa-transform="shrink-7 down-2 right-4" style="color:#000;"></i>
356-
<i class="fas fa-cog fa-spin" data-fa-transform="shrink-7 down-2 right-4" style="color:#333;-webkit-text-stroke:2px #000;"></i>
380+
<i class="fas fa-cog fa-spin" data-fa-transform="shrink-7 down-2 right-4 glow-black" style="color:#333"></i>
357381
</span>
358382

359383
</div>
360384
</div>
361-
<div class="panel-footer text-center">
362-
<em>Not supported by Internet Explorer</em>
363-
</div>
364385
</div>
365386
</div>
366387
</div>

0 commit comments

Comments
 (0)