@@ -18,10 +18,55 @@ <h3>Change Size</h3>
1818< fa-icon [icon] ="faAdjust " size ="2x "> </ fa-icon >
1919< h3 > Animation</ h3 >
2020< p > Click to toggle animation.</ p >
21- < fa-icon [icon] ="faSync " [spin] ="isSyncAnimated " (click) ="isSyncAnimated=! isSyncAnimated "> </ fa-icon >
21+ < fa-icon [icon] ="faSync " [spin] ="isSyncAnimated " (click) ="isSyncAnimated =! isSyncAnimated "> </ fa-icon >
2222< p > Slide to turn up the magic.</ p >
2323< fa-icon [icon] ="faMagic " transform ="rotate-{{magicLevel}} "> </ fa-icon >
24- < input type ='range ' [value] ="magicLevel " (input) ="magicLevel=$event.target.value "/>
24+ < input type ='range ' [value] ="magicLevel " (input) ="magicLevel = $event.target.value "/>
25+
26+ < h3 > Layers</ h3 >
27+ < p > Custom icons created with multiple layers.</ p >
28+ < div [style.font-size.em] ="5 ">
29+ < fa-layers [ngClass] ="['fa-fw'] ">
30+ < fa-icon [icon] ="faCircle " [styles] ="{color: 'Tomato'} "> </ fa-icon >
31+ < fa-icon [icon] ="faTimes " [inverse] ="true " transform ="shrink-6 "> </ fa-icon >
32+ </ fa-layers >
33+ < fa-layers [ngClass] ="['fa-fw'] ">
34+ < fa-icon [icon] ="faMobile "> </ fa-icon >
35+ < fa-icon [icon] ="faBatteryQuarter " transform ="shrink-11 up-1.5 " [styles] ="{color: 'Tomato'} "> </ fa-icon >
36+ </ fa-layers >
37+ < fa-layers [ngClass] ="['fa-fw'] ">
38+ < fa-icon [icon] ="faFighterJet "> </ fa-icon >
39+ < fa-icon [icon] ="faCircle " [inverse] ="true " transform ="shrink-13.8 right-1.8 "> </ fa-icon >
40+ < fa-icon [icon] ="faEllipsisH " transform ="shrink-13 up-6.8 right-2 "> </ fa-icon >
41+ < fa-icon [icon] ="faEllipsisH " transform ="shrink-13 down-6.8 right-2 "> </ fa-icon >
42+ </ fa-layers >
43+ </ div >
44+ < p > Using text as one of the layers.</ p >
45+ < div [style.font-size.em] ="4 ">
46+ < fa-layers [ngClass] ="['fa-fw'] ">
47+ < fa-icon [icon] ="faFlag "> </ fa-icon >
48+ < fa-layers-text [content] ="'Fa' " transform ="up-4 " [styles] ="{'font-size': '0.3em'} "> </ fa-layers-text >
49+ </ fa-layers >
50+ </ div >
51+ < p > Slide and increase the number.</ p >
52+ < input type ='range '
53+ [min] ="1000 "
54+ [max] ="2000 "
55+ [value] ="notificationsCounter "
56+ (input) ="notificationsCounter = $event.target.value "/>
57+ < div [style.font-size.em] ="3 ">
58+ < fa-layers [ngClass] ="['fa-fw'] ">
59+ < fa-icon [icon] ="faBell "> </ fa-icon >
60+ < fa-layers-text [content] ="notificationsCounter | number " [counter] ="true "> </ fa-layers-text >
61+ </ fa-layers >
62+ </ div >
63+
64+ < h3 > When using text layer outside layers component</ h3 >
65+ < p > Expect to see an error on the JavaScript console, and nothing shown between these bars:
66+ |< fa-layers-text [content] ="notificationsCounter | number " [counter] ="true "> </ fa-layers-text > |
67+ </ p >
68+
2569< h3 > Intentionally Missing Icon</ h3 >
2670< p > Expect to see an error on the JavaScript console, and nothing shown between these bars: |< fa-icon [icon] ="faFluzzle "> </ fa-icon > |</ p >
2771
72+
0 commit comments