-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathproperties.yml
More file actions
5391 lines (5391 loc) · 305 KB
/
properties.yml
File metadata and controls
5391 lines (5391 loc) · 305 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
- title: align-content
is_shorthand: false
description: "<p>Defines how each line is aligned within a flexbox container. It
only applies if <code>flex-wrap: wrap</code> is present, and if there are <strong>multiple
lines</strong> of flexbox items.</p>"
styles:
- ".align-content { background: hsl(0, 0%, 95%);display: flex;flex-wrap: wrap;height:
300px;padding: 0; }"
- '.align-content .square { height: 46px;margin: 2px;width: 30%; }.align-content
.square:nth-child(2) { height: 96px; }.align-content .box { height: 150px;left:
0;position: absolute;right: 0;top: 0; }.align-content .box.is-red:before { content:
"First line"; }.align-content .box.is-green { top: 150px; }.align-content .box.is-green:before
{ content: "Second line"; }'
- "#align-content-stretch{ align-content:stretch;}"
- "#align-content-flex-start{ align-content:flex-start;}"
- "#align-content-flex-start .box.is-red { height: 100px; }#align-content-flex-start
.box.is-green { height: 50px;top: 100px; }"
- "#align-content-flex-end{ align-content:flex-end;}"
- "#align-content-flex-end .box.is-red { height: 100px;top: 150px; }#align-content-flex-end
.box.is-green { height: 50px;top: 250px; }"
- "#align-content-center{ align-content:center;}"
- "#align-content-center .box.is-red { height: 100px;top: 75px; }#align-content-center
.box.is-green { height: 50px;top: 175px; }"
- "#align-content-space-between{ align-content:space-between;}"
- "#align-content-space-between .box.is-red { height: 100px;top: 0; }#align-content-space-between
.box.is-green { height: 50px;top: 250px; }"
- "#align-content-space-around{ align-content:space-around;}"
- "#align-content-space-around .box.is-red { height: 100px;top: 38px; }#align-content-space-around
.box.is-green { height: 50px;top: 213px; }"
actions: []
examples:
- is_default: true
title: 'align-content: stretch;'
description: "<p>Each line will stretch to <em>fill</em> the remaining space.</p>
<p>In this case, the container is <code>300px</code> high. All boxes are <code>50px</code>
high, apart from the second one who is <code>100px</code> high.</p>"
output: <div class="example-output-div align-content" id="align-content-stretch"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- is_default: false
title: 'align-content: flex-start;'
description: "<p>Each line will only fill the space it <em>needs</em>. They will
all move towards the <strong>start</strong> of the flexbox container's cross
axis.</p>"
output: <div class="example-output-div align-content" id="align-content-flex-start"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- is_default: false
title: 'align-content: flex-end;'
description: "<p>Each line will only fill the space it <em>needs</em>. They will
all move towards the <strong>end</strong> of the flexbox container's cross axis.</p>"
output: <div class="example-output-div align-content" id="align-content-flex-end"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- is_default: false
title: 'align-content: center;'
description: "<p>Each line will only fill the space it <em>needs</em>. They will
all move towards the <strong>center</strong> of the flexbox container's cross
axis.</p>"
output: <div class="example-output-div align-content" id="align-content-center"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- is_default: false
title: 'align-content: space-between;'
description: "<p>Each line will only fill the space it <em>needs</em>. The <em>remaining</em>
space will appear <strong>between</strong> the lines.</p>"
output: <div class="example-output-div align-content" id="align-content-space-between"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- is_default: false
title: 'align-content: space-around;'
description: "<p>Each line will only fill the space it <em>needs</em>. The <em>remaining</em>
space will be distributed equally <strong>around</strong> the lines: before
the first line, between the two, and after the last one.</p>"
output: <div class="example-output-div align-content" id="align-content-space-around"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="box is-red"></div><div class="box is-green"></div></div>
- title: align-items
is_shorthand: false
description: "<p>Defines how flexbox items are aligned according to the <strong>cross</strong>
axis, within a line of a flexbox container.</p>"
styles:
- ".align-items { background: hsl(0, 0%, 95%);display: flex;height: 200px;justify-content:
center;padding: 0; }"
- ".align-items .square { height: 50px;margin: 0 2px;width: calc(20% - 4px); }.align-items
.square:nth-child(2) { height: 100px; }.align-items .square:nth-child(4) { height:
75px; }.align-items .line { left: 2px;position: absolute;right: 2px; }"
- "#align-items-flex-start{ align-items:flex-start;}"
- "#align-items-flex-start .line { top: 0; }"
- "#align-items-flex-end{ align-items:flex-end;}"
- "#align-items-flex-end .line { bottom: 0; }"
- "#align-items-center{ align-items:center;}"
- "#align-items-center .line { top: 50%; }"
- "#align-items-baseline{ align-items:baseline;}"
- "#align-items-baseline .line { top: 55px; }"
- "#align-items-stretch{ align-items:stretch;}"
- "#align-items-stretch .square { height: auto; }#align-items-stretch .square:nth-child(2)
{ height: auto; }#align-items-stretch .square:nth-child(4) { height: auto; }#align-items-stretch
.line { display: none; }"
actions: []
examples:
- is_default: false
title: 'align-items: flex-start;'
description: "<p>The flexbox items are aligned at the <strong>start</strong> of
the <strong>cross axis</strong>.</p> <p>By default, the cross axis is vertical.
This means the flexbox items will be aligned <em>vertically</em> at the <em>top</em>.</p>"
output: <div class="example-output-div align-items" id="align-items-flex-start"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-red"></div></div>
- is_default: false
title: 'align-items: flex-end;'
description: "<p>The flexbox items are aligned at the <strong>end</strong> of
the <strong>cross axis</strong>.</p> <p>By default, the cross axis is vertical.
This means the flexbox items will be aligned <em>vertically</em> at the _bottom.</p>"
output: <div class="example-output-div align-items" id="align-items-flex-end"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-red"></div></div>
- is_default: false
title: 'align-items: center;'
description: "<p>The flexbox items are aligned at the <strong>center</strong>
of the <strong>cross axis</strong>.</p> <p>By default, the cross axis is vertical.
This means the flexbox items will be <strong>centered</strong> <em>vertically</em>.</p>"
output: <div class="example-output-div align-items" id="align-items-center"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-red"></div></div>
- is_default: false
title: 'align-items: baseline;'
description: "<p>The flexbox items are aligned at the <strong>baseline</strong>
of the <strong>cross axis</strong>.</p> <p>By default, the cross axis is vertical.
This means the flexbox items will align themselves in order to have the <em>baseline</em>
of their <em>text</em> align along a horizontal line.</p>"
output: <div class="example-output-div align-items" id="align-items-baseline"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-red"></div></div>
- is_default: false
title: 'align-items: stretch;'
description: "<p>The flexbox items will stretch across the whole <strong>cross
axis</strong>.</p> <p>By default, the cross axis is vertical. This means the
flexbox items will fill up the whole vertical space.</p>"
output: <div class="example-output-div align-items" id="align-items-stretch"><p
class="square is-plum">1</p><p class="square is-plum">2</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-red"></div></div>
- title: align-self
is_shorthand: false
description: "<p>Works like <code>align-items</code>, but applies only to a <strong>single</strong>
flexbox item, instead of <em>all</em> of them.</p>"
styles:
- ".align-self { align-items: center;background: hsl(0, 0%, 95%);display: flex;height:
200px;justify-content: center;padding: 0; }"
- '.align-self .square { height: 50px;margin: 0 2px;width: calc(20% - 4px); }.align-self
.square:nth-child(2) { background: #05ffb0;color: #310736; }.align-self .square:nth-child(4)
{ height: 75px; }.align-self .line { left: 2px;position: absolute;right: 2px;
}.align-self .line.is-default { top: 50%; }.align-self .line.is-default:before
{ content: "Items"; }.align-self .line.is-red:before { content: "Self"; }'
- "#align-self-flex-start{ align-self:flex-start;}"
- "#align-self-flex-start .target { align-self: flex-start; }"
- "#align-self-flex-end{ align-self:flex-end;}"
- "#align-self-flex-end .line.is-red { bottom: 0; }#align-self-flex-end .target
{ align-self: flex-end; }"
- "#align-self-center{ align-self:center;}"
- "#align-self-center{ align-items: flex-start; }"
- "#align-self-center .line.is-default { top: 0; }#align-self-center .line.is-red
{ top: 50%; }#align-self-center .target { align-self: center; }"
- "#align-self-baseline{ align-self:baseline;}"
- "#align-self-baseline .line.is-default { top: 50%; }#align-self-baseline .line.is-red
{ top: 30px; }#align-self-baseline .target { align-self: baseline; }"
- "#align-self-stretch{ align-self:stretch;}"
- "#align-self-stretch .line.is-default { top: 50%; }#align-self-stretch .line.is-red
{ display: none; }#align-self-stretch .target { align-self: stretch;height: auto;
}"
actions: []
examples:
- is_default: false
title: 'align-self: flex-start;'
description: "<p>If the container has <code>align-items: center</code> and the
<strong>target</strong> has <code>align-items: flex-start</code>, only the target
will be at the start of the cross axis.</p> <p>By default, this means it will
be aligned <strong>vertically</strong> at the <strong>top</strong>.</p>"
output: <div class="example-output-div align-self" id="align-self-flex-start"><p
class="square is-plum">1</p><p class="square target">Target</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-default"></div><div class="line is-red"></div></div>
- is_default: false
title: 'align-self: flex-end;'
description: "<p>If the container has <code>align-items: center</code> and the
<strong>target</strong> has <code>align-items: flex-end</code>, only the target
will be at the end of the cross axis.</p> <p>By default, this means it will
be aligned <strong>vertically</strong> at the <strong>bottom</strong>.</p>"
output: <div class="example-output-div align-self" id="align-self-flex-end"><p
class="square is-plum">1</p><p class="square target">Target</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-default"></div><div class="line is-red"></div></div>
- is_default: false
title: 'align-self: center;'
description: "<p>If the container has <code>align-items: flex-start</code> and
the <strong>target</strong> has <code>align-items: center</code>, only the target
will be at the center of the cross axis.</p> <p>By default, this means it will
be <strong>vertically centered</strong>.</p>"
output: <div class="example-output-div align-self" id="align-self-center"><p
class="square is-plum">1</p><p class="square target">Target</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-default"></div><div class="line is-red"></div></div>
- is_default: false
title: 'align-self: baseline;'
description: "<p>If the container has <code>align-items: center</code> and the
<strong>target</strong> has <code>align-items: baseline</code>, only the target
will be at the baseline of the cross axis.</p> <p>By default, this means it
will be aligned along the basline of the text.</p>"
output: <div class="example-output-div align-self" id="align-self-baseline"><p
class="square is-plum">1</p><p class="square target">Target</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-default"></div><div class="line is-red"></div></div>
- is_default: false
title: 'align-self: stretch;'
description: "<p>If the container has <code>align-items: center</code> and the
<strong>target</strong> has <code>align-items: stretch</code>, only the target
will stretch along the whole cross axis.</p>"
output: <div class="example-output-div align-self" id="align-self-stretch"><p
class="square is-plum">1</p><p class="square target">Target</p><p class="square
is-plum">3</p><p class="square is-plum">4</p><p class="square is-plum">5</p><div
class="line is-default"></div><div class="line is-red"></div></div>
- title: animation-delay
is_shorthand: false
description: "<p>Defines how long the animation has to wait before <strong>starting</strong>.
The animation will only be delayed on its <em>first</em> iteration.</p>"
styles:
- ".animation-delay { animation-duration: 5s;animation-iteration-count: infinite;
}"
- ".animation-delay.is-animated { animation-name: fadeAndMove; }"
- "#animation-delay-0s{ animation-delay:0s;}"
- "#animation-delay-12s{ animation-delay:1.2s;}"
- "#animation-delay-2400ms{ animation-delay:2400ms;}"
- "#animation-delay--500ms{ animation-delay:-500ms;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-delay"></a>
examples:
- is_default: true
title: 'animation-delay: 0s;'
description: "<p>The animation will wait <strong>zero seconds</strong>, and thus
start right away.</p>"
output: <div class="example-output-div animation-delay square is-plum" id="animation-delay-0s">Hello<br>World</div>
- is_default: false
title: 'animation-delay: 1.2s;'
description: "<p>You can use <strong>decimal</strong> values in <strong>seconds</strong>
with the keyword <code>s</code>.</p>"
output: <div class="example-output-div animation-delay square is-plum" id="animation-delay-12s">Hello<br>World</div>
- is_default: false
title: 'animation-delay: 2400ms;'
description: "<p>You can use <strong>milliseconds</strong> instead of seconds,
with the keyword <code>ms</code>.</p>"
output: <div class="example-output-div animation-delay square is-plum" id="animation-delay-2400ms">Hello<br>World</div>
- is_default: false
title: 'animation-delay: -500ms;'
description: "<p>You can use <strong>negative values</strong>: the animation will
start as if it had <em>already been playing</em> for <code>500ms</code>.</p>"
output: <div class="example-output-div animation-delay square is-plum" id="animation-delay--500ms">Hello<br>World</div>
- title: animation-direction
is_shorthand: false
description: "<p>Defines in which direction the animation is played.</p>"
styles:
- ".animation-direction { animation-duration: 2s;animation-iteration-count: infinite;
}"
- ".animation-direction.is-animated { animation-name: fadeAndMove; }"
- "#animation-direction-normal{ animation-direction:normal;}"
- "#animation-direction-reverse{ animation-direction:reverse;}"
- "#animation-direction-alternate{ animation-direction:alternate;}"
- "#animation-direction-alternate-reverse{ animation-direction:alternate-reverse;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-direction"></a>
examples:
- is_default: true
title: 'animation-direction: normal;'
description: "<p>The animation is played <strong>forwards</strong>. When it reaches
the end, it starts over at the first keyframe.</p>"
output: <div class="example-output-div animation-direction square is-plum" id="animation-direction-normal">Hello<br>World</div>
- is_default: false
title: 'animation-direction: reverse;'
description: "<p>The animation is played <strong>backwards</strong>: begins at
the last keyframe, finishes at the first keyframe.</p>"
output: <div class="example-output-div animation-direction square is-plum" id="animation-direction-reverse">Hello<br>World</div>
- is_default: false
title: 'animation-direction: alternate;'
description: "<p>The animation is played <strong>forwards</strong> first, then
<strong>backwards</strong>:</p> <ul><li>starts at the first keyframe</li><li>stops
at the last keyframe</li><li>starts again, but at the last keyframe</li><li>stops
at the first keyframe</li></ul>"
output: <div class="example-output-div animation-direction square is-plum" id="animation-direction-alternate">Hello<br>World</div>
- is_default: false
title: 'animation-direction: alternate-reverse;'
description: "<p>The animation is played <strong>backwards</strong> first, then
<strong>forwards</strong>:</p> <ul><li>starts at the last keyframe</li><li>stops
at the first keyframe</li><li>starts again, but at the first keyframe</li><li>stops
at the last keyframe</li></ul>"
output: <div class="example-output-div animation-direction square is-plum" id="animation-direction-alternate-reverse">Hello<br>World</div>
- title: animation-duration
is_shorthand: false
description: "<p>Defines how long the animation lasts.</p>"
styles:
- ".animation-duration { animation-iteration-count: infinite; }"
- ".animation-duration.is-animated { animation-name: fadeAndMove; }"
- "#animation-duration-0s{ animation-duration:0s;}"
- "#animation-duration-12s{ animation-duration:1.2s;}"
- "#animation-duration-2400ms{ animation-duration:2400ms;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-duration"></a>
examples:
- is_default: true
title: 'animation-duration: 0s;'
description: "<p>The default value is <strong>zero seconds</strong>: the animation
will simply not play.</p>"
output: <div class="example-output-div animation-duration square is-plum" id="animation-duration-0s">Hello<br>World</div>
- is_default: false
title: 'animation-duration: 1.2s;'
description: "<p>You can use <strong>decimal</strong> values in <strong>seconds</strong>
with the keyword <code>s</code>.</p>"
output: <div class="example-output-div animation-duration square is-plum" id="animation-duration-12s">Hello<br>World</div>
- is_default: false
title: 'animation-duration: 2400ms;'
description: "<p>You can use <strong>milliseconds</strong> instead of seconds,
with the keyword <code>ms</code>.</p>"
output: <div class="example-output-div animation-duration square is-plum" id="animation-duration-2400ms">Hello<br>World</div>
- title: animation-fill-mode
is_shorthand: false
description: "<p>Defines what happens <strong>before</strong> an animation starts
and <strong>after</strong> it ends. The fill mode allows to tell the browser if
the animation’s styles should also be applied <em>outside</em> of the animation.</p>"
styles:
- ".animation-fill-mode { animation-delay: 1s;animation-duration: 2s;animation-iteration-count:
1;animation-name: kf-animation-fill-mode;animation-play-state: paused; }"
- ".animation-fill-mode.is-animated { animation-play-state: running; }"
- "#animation-fill-mode-none{ animation-fill-mode:none;}"
- "#animation-fill-mode-forwards{ animation-fill-mode:forwards;}"
- "#animation-fill-mode-backwards{ animation-fill-mode:backwards;}"
- "#animation-fill-mode-both{ animation-fill-mode:both;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-fill-mode"></a>
examples:
- is_default: true
title: 'animation-fill-mode: none;'
description: "<p>The <em>animation</em> styles do not affect the <em>default</em>
style: the element is set to its default state before the animation starts,
and returns to that default state after the animation ends.</p>"
output: <div class="example-output-div animation-fill-mode square is-pink" id="animation-fill-mode-none">Hello<br>World</div>
- is_default: false
title: 'animation-fill-mode: forwards;'
description: "<p>The last styles applied at the end of the animation are retained
<em>afterwards</em>.</p>"
output: <div class="example-output-div animation-fill-mode square is-pink" id="animation-fill-mode-forwards">Hello<br>World</div>
- is_default: false
title: 'animation-fill-mode: backwards;'
description: "<p>The animation's styles will already be applied <em>before</em>
the animation actually starts.</p>"
output: <div class="example-output-div animation-fill-mode square is-pink" id="animation-fill-mode-backwards">Hello<br>World</div>
- is_default: false
title: 'animation-fill-mode: both;'
description: "<p>The styles are applied <em>before</em> and <em>after</em> the
animation plays.</p>"
output: <div class="example-output-div animation-fill-mode square is-pink" id="animation-fill-mode-both">Hello<br>World</div>
- title: animation-iteration-count
is_shorthand: false
description: "<p>Defines how many times the animation is played.</p>"
styles:
- ".animation-iteration-count { animation-duration: 2s; }"
- ".animation-iteration-count.is-animated { animation-name: fadeAndMove; }"
- "#animation-iteration-count-1{ animation-iteration-count:1;}"
- "#animation-iteration-count-2{ animation-iteration-count:2;}"
- "#animation-iteration-count-infinite{ animation-iteration-count:infinite;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-iteration-count"></a>
examples:
- is_default: true
title: 'animation-iteration-count: 1;'
description: "<p>The animation will only play <strong>once</strong>.</p>"
output: <div class="example-output-div animation-iteration-count square is-plum"
id="animation-iteration-count-1">Hello<br>World</div>
- is_default: false
title: 'animation-iteration-count: 2;'
description: "<p>You can use <strong>integer values</strong> to define a <em>specific</em>
amount of times the animation will play.</p>"
output: <div class="example-output-div animation-iteration-count square is-plum"
id="animation-iteration-count-2">Hello<br>World</div>
- is_default: false
title: 'animation-iteration-count: infinite;'
description: "<p>By using the keyword <code>infinite</code>, the animation will
play indefinitely.</p>"
output: <div class="example-output-div animation-iteration-count square is-plum"
id="animation-iteration-count-infinite">Hello<br>World</div>
- title: animation-name
is_shorthand: false
description: "<p>Defines <em>which</em> animation keyframes to use.</p>"
styles:
- ".animation-name { animation-iteration-count: infinite; }"
- ".animation-name.is-animated { animation-duration: 2s; }"
- "#animation-name-none{ animation-name:none;}"
- "#animation-name-fadein{ animation-name:fadeIn;}"
- "#animation-name-moveright{ animation-name:moveRight;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-name"></a>
examples:
- is_default: true
title: 'animation-name: none;'
description: "<p>If no animation name is specified, no animation is played.</p>"
output: <div class="example-output-div animation-name square is-plum" id="animation-name-none">Hello<br>World</div>
- is_default: false
title: 'animation-name: fadeIn;'
description: "<p>If a name is specified, the <strong>keyframes</strong> matching
that name will be used.</p> <p>For example, the <code>fadeIn</code> animation
looks like this:</p> <p></p><pre>@keyframes fadeIn { from { opacity: 0; } to
{ opacity: 1; } }</pre><p></p>"
output: <div class="example-output-div animation-name square is-plum" id="animation-name-fadein">Hello<br>World</div>
- is_default: false
title: 'animation-name: moveRight;'
description: "<p>Another example: the <code>moveRight</code> animation:</p> <p></p><pre>@keyframes
moveRight { from { transform: translateX(0); } to { transform: translateX(100px);
} }</pre><p></p>"
output: <div class="example-output-div animation-name square is-plum" id="animation-name-moveright">Hello<br>World</div>
- title: animation-play-state
is_shorthand: false
description: "<p>Defines if an animation is playing or not.</p>"
styles:
- ".animation-play-state { animation-duration: 2s;animation-iteration-count: infinite;
}"
- ".animation-play-state.is-animated { animation-name: fadeAndMove; }"
- "#animation-play-state-running{ animation-play-state:running;}"
- "#animation-play-state-paused{ animation-play-state:paused;}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-play-state"></a>
examples:
- is_default: true
title: 'animation-play-state: running;'
description: "<p>If the <code>animation-duration</code> and <code>animation-name</code>
are defined, the animation will start playing automatically.</p>"
output: <div class="example-output-div animation-play-state square is-plum" id="animation-play-state-running">Hello<br>World</div>
- is_default: false
title: 'animation-play-state: paused;'
description: '<p>The animation is set paused at the <strong>first keyframe</strong>.</p>
<p>This is different than having either no <code>animation-duration</code> or
<code>animation-name</code> at all. If the animation is paused, the style applied
is that of the <em>first</em> keyframe, and <strong>not</strong> the default
style.</p> <p>In this example, the square is visible by default, but the on
the first keyframe of <code>fadeAndMove</code>, the <code>opacity</code> is
set to <code>0</code>. When paused, the animation will be "stuck" on this first
keyframe, and will thus be invisible.</p> <p></p><pre>@keyframes fadeAndMove
{ from { opacity: 0; transform: translateX(0); } to { opacity: 0; transform:
translateX(100px); } }</pre><p></p>'
output: <div class="example-output-div animation-play-state square is-plum" id="animation-play-state-paused">Hello<br>World</div>
- title: animation-timing-function
is_shorthand: false
description: "<p>Defines how the values between the <em>start</em> and the <em>end</em>
of the animation are calculated.</p>"
styles:
- ".animation-timing-function { animation-duration: 3s;animation-fill-mode: forwards;
}"
- ".animation-timing-function.is-animated { animation-name: moveRight; }"
- "#animation-timing-function-ease{ animation-timing-function:ease;}"
- "#animation-timing-function-ease-in{ animation-timing-function:ease-in;}"
- "#animation-timing-function-ease-out{ animation-timing-function:ease-out;}"
- "#animation-timing-function-ease-in-out{ animation-timing-function:ease-in-out;}"
- "#animation-timing-function-linear{ animation-timing-function:linear;}"
- "#animation-timing-function-step-start{ animation-timing-function:step-start;}"
- "#animation-timing-function-step-end{ animation-timing-function:step-end;}"
- "#animation-timing-function-steps4-end{ animation-timing-function:steps(4, end);}"
actions:
- <a class="button property-animation-toggle" data-property-name="animation-timing-function"></a>
examples:
- is_default: true
title: 'animation-timing-function: ease;'
description: "<p>The animation starts slowly, accelerates in the middle, and slows
down at the end.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-ease">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: ease-in;'
description: "<p>The animation starts slowly, and accelerates gradually until
the end.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-ease-in">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: ease-out;'
description: "<p>The animation starts quickly, and decelerates gradually until
the end.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-ease-out">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: ease-in-out;'
description: "<p>Like <code>ease</code>, but more pronounced.</p> <p>The animation
starts quickly, and decelerates gradually until the end.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-ease-in-out">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: linear;'
description: "<p>The animation has a <em>*constant speed</em>.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-linear">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: step-start;'
description: "<p>The animation jumps <em>instantly</em> to the <strong>final state</strong>.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-step-start">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: step-end;'
description: "<p>The animation stays at the <strong>initial state</strong> until
the end, when it <em>instantly</em> jumps to the <strong>final state</strong>.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-step-end">Hello<br>World</div>
- is_default: false
title: 'animation-timing-function: steps(4, end);'
description: "<p>By using <code>steps()</code> with an <strong>integer</strong>,
you can define a specific <em>number</em> of steps before reaching the end.
The state of the element will <em>not</em> vary gradually, but rather <strong>jump</strong>
from state to state in separate instants.</p>"
output: <div class="example-output-div animation-timing-function square is-plum"
id="animation-timing-function-steps4-end">Hello<br>World</div>
- title: animation
is_shorthand: true
description: <p>Shorthand property for <code class="shorthand"><a class="hash" href="http://localhost:4000/#animation-name"
data-property-name="animation-name">animation-name</a></code> <code class="shorthand"><a
class="hash" href="http://localhost:4000/#animation-duration" data-property-name="animation-duration">animation-duration</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#animation-timing-function"
data-property-name="animation-timing-function">animation-timing-function</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#animation-delay"
data-property-name="animation-delay">animation-delay</a></code> <code class="shorthand"><a
class="hash" href="http://localhost:4000/#animation-iteration-count" data-property-name="animation-iteration-count">animation-iteration-count</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#animation-direction"
data-property-name="animation-direction">animation-direction</a></code> <code
class="shorthand"><a class="hash" href="http://localhost:4000/#animation-fill-mode"
data-property-name="animation-fill-mode">animation-fill-mode</a></code> and <code
class="shorthand"><a class="hash" href="http://localhost:4000/#animation-play-state"
data-property-name="animation-play-state">animation-play-state</a></code>.</p>
<p>Only <code>animation-duration</code> and <code>animation-name</code> are <strong>required</strong>.</p>
styles: []
actions: []
examples: []
- title: background-attachment
is_shorthand: false
description: "<p>Defines <em>how</em> the background image will behave when scrolling
the page.</p>"
styles:
- ".background-attachment { background-image: url(/images/landscape.jpg);background-position:
center center;background-size: cover;height: 200px; }"
- ".background-attachment p { background: white;padding: 0.8em 1em; }"
- "#background-attachment-scroll{ background-attachment:scroll;}"
- "#background-attachment-fixed{ background-attachment:fixed;}"
actions: []
examples:
- is_default: true
title: 'background-attachment: scroll;'
description: "<p>The background image will scroll with the page. It will also
position and resize itself according to the element it's applied to.</p>"
output: <div class="example-output-div background-attachment" id="background-attachment-scroll"><p>Hello
world</p></div>
- is_default: false
title: 'background-attachment: fixed;'
description: "<p>The background image will <em>not</em> scroll with the page,
and remain positioned according to the viewport. It will also position and resize
itself according to the viewport. As a result, the background image will probably
only be partially visible.</p>"
output: <div class="example-output-div background-attachment" id="background-attachment-fixed"><p>Hello
world</p></div>
- title: background-clip
is_shorthand: false
description: "<p>Defines how far the background should <strong>extend</strong> within
the element.</p>"
styles:
- ".background-clip { background: #05ffb0;border: 4px dashed;padding: 2em; }"
- "#background-clip-border-box{ background-clip:border-box;}"
- "#background-clip-padding-box{ background-clip:padding-box;}"
- "#background-clip-content-box{ background-clip:content-box;}"
actions: []
examples:
- is_default: true
title: 'background-clip: border-box;'
description: "<p>The background extends completely throughout the element, even
<strong>under</strong> the border.</p>"
output: <div class="example-output-div background-clip" id="background-clip-border-box">Hello
world</div>
- is_default: false
title: 'background-clip: padding-box;'
description: "<p>The background only extends to the <em>edge</em> of the border:
it includes the padding but <em>not</em> the border.</p>"
output: <div class="example-output-div background-clip" id="background-clip-padding-box">Hello
world</div>
- is_default: false
title: 'background-clip: content-box;'
description: "<p>The background only extends to the edge of the <em>content</em>:
it doesn't include the padding, nor the border.</p>"
output: <div class="example-output-div background-clip" id="background-clip-content-box">Hello
world</div>
- title: background-color
is_shorthand: false
description: "<p>Defines the color of the element's background.</p>"
styles:
- "#background-color-transparent{ background-color:transparent;}"
- "#background-color-red{ background-color:red;}"
- "#background-color-05ffb0{ background-color:#05ffb0;}"
- "#background-color-rgb50-115-220{ background-color:rgb(50, 115, 220);}"
- "#background-color-rgba50-115-220-03{ background-color:rgba(50, 115, 220, 0.3);}"
- "#background-color-hsl14-100-53{ background-color:hsl(14, 100%, 53%);}"
- "#background-color-hsla14-100-53-06{ background-color:hsla(14, 100%, 53%, 0.6);}"
actions: []
examples:
- is_default: true
title: 'background-color: transparent;'
description: "<p>By default, the background color is <strong>transparent</strong>,
basically meaning that there is <strong>no</strong> background color.</p>"
output: <div class="example-output-div background-color" id="background-color-transparent">Hello
World</div>
- is_default: false
title: 'background-color: red;'
description: <p>You can use one of the <strong><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">140+
color names</a></strong>.</p>
output: <div class="example-output-div background-color" id="background-color-red">Hello
World</div>
- is_default: false
title: 'background-color: #05ffb0;'
description: "<p>You can use <strong>hexadecimal</strong> color codes.</p>"
output: <div class="example-output-div background-color" id="background-color-05ffb0">Hello
World</div>
- is_default: false
title: 'background-color: rgb(50, 115, 220);'
description: "<p>You can use <strong>rgb()</strong> color codes:</p> <ul><li>the
first value is for <code>red</code></li><li>the second value is for <code>green</code></li><li>the
third value is for <code>blue</code></li></ul><p>Each of them can have a value
between <strong>0</strong> and <strong>255</strong>.</p>"
output: <div class="example-output-div background-color" id="background-color-rgb50-115-220">Hello
World</div>
- is_default: false
title: 'background-color: rgba(50, 115, 220, 0.3);'
description: "<p>You can use <strong>rgba()</strong> color codes:</p> <ul><li>the
first 3 values are for <code>rgb</code></li><li>the 4th value is for the <code>alpha</code>
channel and defines the opacity of the color</li></ul><p>The alpha value can
go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p>"
output: <div class="example-output-div background-color" id="background-color-rgba50-115-220-03">Hello
World</div>
- is_default: false
title: 'background-color: hsl(14, 100%, 53%);'
description: "<p>You can use <strong>hsl()</strong> color codes:</p> <ul><li>the
first value is for <code>hue</code> and can go from <strong>0</strong> to <strong>359</strong></li><li>the
second value is for <code>saturation</code> and go from <strong>0%</strong>
to <strong>100%</strong></li><li>the third value is for <code>luminosity</code>
and go from <strong>0%</strong> to <strong>100%</strong></li></ul>"
output: <div class="example-output-div background-color" id="background-color-hsl14-100-53">Hello
World</div>
- is_default: false
title: 'background-color: hsla(14, 100%, 53%, 0.6);'
description: "<p>You can use <strong>hsl()a</strong> color codes:</p> <ul><li>the
first 3 values are for <code>hsl</code></li><li>the 4th value is for the <code>alpha</code>
channel and defines the opacity of the color</li></ul><p>The alpha value can
go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p>"
output: <div class="example-output-div background-color" id="background-color-hsla14-100-53-06">Hello
World</div>
- title: background-image
is_shorthand: false
description: "<p>Defines an image as the background of the element.</p>"
styles:
- ".background-image { background-repeat: no-repeat;height: 200px; }"
- "#background-image-none{ background-image:none;}"
- "#background-image-urlimagesjtpng{ background-image:url(/images/jt.png);}"
- "#background-image-urlimagesjtpng{ background-size: 64px 64px; }"
- "#background-image-linear-gradientred-blue{ background-image:linear-gradient(red,
blue);}"
- "#background-image-linear-gradient45deg-red-blue{ background-image:linear-gradient(45deg,
red, blue);}"
- "#background-image-radial-gradientgreen-purple{ background-image:radial-gradient(green,
purple);}"
- "#background-image-radial-gradientcircle-green-purple{ background-image:radial-gradient(circle,
green, purple);}"
- "#background-image-radial-gradientcircle-green-0-purple-20-orange-100{ background-image:radial-gradient(circle,
green 0%, purple 20%, orange 100%);}"
- "#background-image-radial-gradientcircle-closest-side-green-0-purple-20-orange-100{
background-image:radial-gradient(circle closest-side, green 0%, purple 20%, orange
100%);}"
- "#background-image-radial-gradientcircle-closest-side-at-45px-45px-green-0-purple-20-orange-100{
background-image:radial-gradient(circle closest-side at 45px 45px, green 0%, purple
20%, orange 100%);}"
actions: []
examples:
- is_default: true
title: 'background-image: none;'
description: "<p>Removes any background image.</p>"
output: <div class="example-output-div background-image" id="background-image-none">Hello
world</div>
- is_default: false
title: 'background-image: url(/images/jt.png);'
description: "<p>Uses the image defined in the <strong>url</strong> path. This
path can either be <em>relative</em> (to the css file) or <em>absolute</em>
(like <code>http://cssreference.io/images/jt.png</code>).</p>"
output: <div class="example-output-div background-image" id="background-image-urlimagesjtpng">Hello
world</div>
- is_default: false
title: 'background-image: linear-gradient(red, blue);'
description: "<p>You can define a <strong>linear gradient</strong> as the background
image.</p> <p>You need to define at least <strong>two colors</strong>. The first
one will start at the top, the second one at the bottom.</p> <p>The default
angle is <code>to bottom</code> (or <code>180deg</code>), which means the gradient
is <strong>vertical</strong>, starting at the top, ending at the bottom of the
element.</p>"
output: <div class="example-output-div background-image" id="background-image-linear-gradientred-blue">Hello
world</div>
- is_default: false
title: 'background-image: linear-gradient(45deg, red, blue);'
description: "<p>You can specify an <strong>angle</strong>, either in <strong>degrees</strong>,
or with keywords.</p> <p>When using degress, you specify the <em>direction</em>
of the gradient, or when it ends. So <code>0deg</code> means the the <strong>top</strong>
of the element, like 12:00 on a clock.</p> <p>In this example, <code>45deg</code>
means 2:30, or the top right corner.</p>"
output: <div class="example-output-div background-image" id="background-image-linear-gradient45deg-red-blue">Hello
world</div>
- is_default: false
title: 'background-image: radial-gradient(green, purple);'
description: "<p>You can define a <strong>radial gradient</strong> as the background
image.</p> <p>You need to define at least <strong>two colors</strong>. The first
one will be at the center, the second one at the edges.</p>"
output: <div class="example-output-div background-image" id="background-image-radial-gradientgreen-purple">Hello
world</div>
- is_default: false
title: 'background-image: radial-gradient(circle, green, purple);'
description: "<p>You can specify the <strong>shape</strong> of the radial gradient:
<strong>circle</strong> or <strong>ellipse</strong> (default).</p>"
output: <div class="example-output-div background-image" id="background-image-radial-gradientcircle-green-purple">Hello
world</div>
- is_default: false
title: 'background-image: radial-gradient(circle, green 0%, purple 20%, orange
100%);'
description: "<p>You can specify <strong>color stops</strong> using percentage
values.</p>"
output: <div class="example-output-div background-image" id="background-image-radial-gradientcircle-green-0-purple-20-orange-100">Hello
world</div>
- is_default: false
title: 'background-image: radial-gradient(circle closest-side, green 0%, purple
20%, orange 100%);'
description: "<p>You can specify <em>where</em> the gradient should <strong>end</strong>:</p>
<ul><li><code>closest-side</code></li><li><code>closest-corner</code></li><li><code>farthest-side</code></li><li><code>farthest-corner</code></li></ul>"
output: <div class="example-output-div background-image" id="background-image-radial-gradientcircle-closest-side-green-0-purple-20-orange-100">Hello
world</div>
- is_default: false
title: 'background-image: radial-gradient(circle closest-side at 45px 45px, green
0%, purple 20%, orange 100%);'
description: <p>Like with the <a href="http://cssreference.io/#background-position"><code>background-position</code></a>,
you can specify the <strong>position</strong> of the gradient.</p>
output: <div class="example-output-div background-image" id="background-image-radial-gradientcircle-closest-side-at-45px-45px-green-0-purple-20-orange-100">Hello
world</div>
- title: background-origin
is_shorthand: false
description: "<p>Defines the origin of the background image.</p>"
styles:
- ".background-origin { background-image: url(/images/jt.png);background-repeat:
no-repeat;background-size: 64px 64px;border: 4px dashed;padding: 2em; }"
- ".background-origin p { background-color: rgba(5, 255, 176, 0.5);padding: 1em;
}"
- "#background-origin-padding-box{ background-origin:padding-box;}"
- "#background-origin-border-box{ background-origin:border-box;}"
- "#background-origin-content-box{ background-origin:content-box;}"
actions: []
examples:
- is_default: true
title: 'background-origin: padding-box;'
description: "<p>The background image starts at the <em>edge</em> of the border:
within padding but <em>not</em> the border.</p>"
output: <div class="example-output-div background-origin" id="background-origin-padding-box"><p>Hello
world</p></div>
- is_default: false
title: 'background-origin: border-box;'
description: "<p>The background image starts <strong>under</strong> the border.</p>"
output: <div class="example-output-div background-origin" id="background-origin-border-box"><p>Hello
world</p></div>
- is_default: false
title: 'background-origin: content-box;'
description: "<p>The background image only starts at the edge of the <em>content</em>:
it doesn't include the padding, nor the border.</p>"
output: <div class="example-output-div background-origin" id="background-origin-content-box"><p>Hello
world</p></div>
- title: background-position
is_shorthand: false
description: "<p>Defines the position of the background image.</p>"
styles:
- ".background-position { background-image: url(/images/jt.png);background-repeat:
no-repeat;background-size: 64px 64px;height: 150px; }"
- "#background-position-0-0{ background-position:0% 0%;}"
- "#background-position-bottom-right{ background-position:bottom right;}"
- "#background-position-center-center{ background-position:center center;}"
actions: []
examples:
- is_default: true
title: 'background-position: 0% 0%;'
description: "<p>The background image will be positioned at <strong>0%</strong>
on the horizontal axis and <strong>0%</strong> on the vertical axis, which means
the top left corner of the element.</p>"
output: <div class="example-output-div background-position" id="background-position-0-0">Hello
world</div>
- is_default: false
title: 'background-position: bottom right;'
description: "<p>You can use a combination of <strong>position keywords</strong>:
<code>center</code>, <code>top</code>, <code>bottom</code>, <code>left</code>
and <code>right</code>.</p>"
output: <div class="example-output-div background-position" id="background-position-bottom-right">Hello
world</div>
- is_default: false
title: 'background-position: center center;'
description: "<p>The background image will be positioned in the center of the
element.</p>"
output: <div class="example-output-div background-position" id="background-position-center-center">Hello
world</div>
- title: background-repeat
is_shorthand: false
description: "<p>Defines how the background image repeats itself across the element's
background, starting from the background position.</p>"
styles:
- ".background-repeat { background-image: url(/images/jt.png);background-size: 64px
64px;height: 150px; }"
- "#background-repeat-repeat{ background-repeat:repeat;}"
- "#background-repeat-repeat-x{ background-repeat:repeat-x;}"
- "#background-repeat-repeat-y{ background-repeat:repeat-y;}"
- "#background-repeat-no-repeat{ background-repeat:no-repeat;}"
actions: []
examples:
- is_default: true
title: 'background-repeat: repeat;'
description: "<p>The background image will repeat itself both <strong>horizontally</strong>
and <strong>vertically</strong>.</p>"
output: <div class="example-output-div background-repeat" id="background-repeat-repeat">Hello
world</div>
- is_default: false
title: 'background-repeat: repeat-x;'
description: "<p>The background image will only repeat itself <strong>horizontally</strong>.</p>"
output: <div class="example-output-div background-repeat" id="background-repeat-repeat-x">Hello
world</div>
- is_default: false
title: 'background-repeat: repeat-y;'
description: "<p>The background image will only repeat itself <strong>vertically</strong>.</p>"
output: <div class="example-output-div background-repeat" id="background-repeat-repeat-y">Hello
world</div>
- is_default: false
title: 'background-repeat: no-repeat;'
description: "<p>The background image will only appear <strong>once</strong>.</p>"
output: <div class="example-output-div background-repeat" id="background-repeat-no-repeat">Hello
world</div>
- title: background-size
is_shorthand: false
description: "<p>Defines the size of the background image.</p>"
styles:
- ".background-size { background-image: url(/images/landscape.jpg);background-repeat:
no-repeat;height: 150px;padding: 0; }"
- "#background-size-auto-auto{ background-size:auto auto;}"
- "#background-size-120px-80px{ background-size:120px 80px;}"
- "#background-size-100-50{ background-size:100% 50%;}"
- "#background-size-contain{ background-size:contain;}"
- "#background-size-cover{ background-size:cover;}"
actions: []
examples:
- is_default: true
title: 'background-size: auto auto;'
description: "<p>The background image will retain its <strong>original</strong>
size.</p> <p>For example, this background image is <strong>960px by 640px</strong>
large. Its aspect ratio is <strong>3 by 2</strong>. It's bigger than its container
(which is 150px high) and will thus be <strong>clipped</strong>.</p>"
output: <div class="example-output-div background-size" id="background-size-auto-auto">Hello
world</div>
- is_default: false
title: 'background-size: 120px 80px;'
description: "<p>You can specify a size in <strong>pixels</strong>:</p> <ul><li>the
first value is the <strong>horizontal</strong> size</li><li>the second is the
<strong>vertical</strong> size</li></ul>"
output: <div class="example-output-div background-size" id="background-size-120px-80px">Hello
world</div>
- is_default: false
title: 'background-size: 100% 50%;'
description: "<p>You can use <strong>percentage</strong> values as well. Beware
that this can alter the <strong>aspect ratio</strong> of the background image,
and lead to unexpected results.</p>"
output: <div class="example-output-div background-size" id="background-size-100-50">Hello
world</div>
- is_default: false
title: 'background-size: contain;'
description: "<p>The keyword <code>contain</code> will resize the background image
to make sure it remains <strong>fully visible</strong>.</p>"
output: <div class="example-output-div background-size" id="background-size-contain">Hello
world</div>
- is_default: false
title: 'background-size: cover;'
description: "<p>The keyword <code>cover</code> will resize the background image
to make sure the element is <strong>fully covered</strong>.</p>"
output: <div class="example-output-div background-size" id="background-size-cover">Hello
world</div>
- title: background
is_shorthand: true
description: <p>Shorthand property for <code class="shorthand"><a class="hash" href="http://localhost:4000/#background-image"
data-property-name="background-image">background-image</a></code> <code class="shorthand"><a
class="hash" href="http://localhost:4000/#background-position" data-property-name="background-position">background-position</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#background-size"
data-property-name="background-size">background-size</a></code> <code class="shorthand"><a
class="hash" href="http://localhost:4000/#background-repeat" data-property-name="background-repeat">background-repeat</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#background-origin"
data-property-name="background-origin">background-origin</a></code> <code class="shorthand"><a
class="hash" href="http://localhost:4000/#background-clip" data-property-name="background-clip">background-clip</a></code>
<code class="shorthand"><a class="hash" href="http://localhost:4000/#background-attachment"
data-property-name="background-attachment">background-attachment</a></code> and
<code class="shorthand"><a class="hash" href="http://localhost:4000/#background-color"
data-property-name="background-color">background-color</a></code>.</p>
styles: []
actions: []
examples: []
- title: border-bottom-color
is_shorthand: false
description: <p>Like <code class="shorthand"><a href="http://cssreference.io/#border-color">border-color</a></code>,
but for the <strong>bottom</strong> border only.</p>
styles:
- ".border-bottom-color { border-bottom-style: solid;border-bottom-width: 4px; }"
- "#border-bottom-color-transparent{ border-bottom-color:transparent;}"
- "#border-bottom-color-red{ border-bottom-color:red;}"
- "#border-bottom-color-05ffb0{ border-bottom-color:#05ffb0;}"
actions: []
examples:
- is_default: false
title: 'border-bottom-color: transparent;'
description: "<p>Applies a <strong>transparent</strong> color to the bottom border.
The bottom border will still take up the <em>space</em> defined by the <code>border-width</code>
value.</p>"
output: <div class="example-output-div border-bottom-color" id="border-bottom-color-transparent">Hello
world</div>
- is_default: false
title: 'border-bottom-color: red;'
description: <p>You can use one of the <strong><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">140+
color names</a></strong>.</p>
output: <div class="example-output-div border-bottom-color" id="border-bottom-color-red">Hello
world</div>
- is_default: false
title: 'border-bottom-color: #05ffb0;'
description: "<p>You can use <strong>hexadecimal</strong> color codes, <code>rgb()</code>,
<code>rgba()</code>, <code>hsl()</code>, <code>hsla()</code>...</p>"
output: <div class="example-output-div border-bottom-color" id="border-bottom-color-05ffb0">Hello
world</div>
- title: border-bottom-left-radius
is_shorthand: false
description: "<p>Defines the <strong>radius</strong> of the bottom left corner.</p>"
styles:
- ".border-bottom-left-radius { border-bottom-color: #05ffb0;border-left-color:
hsl(348, 100%, 61%);border-style: solid;border-width: 4px; }"
- "#border-bottom-left-radius-0{ border-bottom-left-radius:0;}"
- "#border-bottom-left-radius-20px{ border-bottom-left-radius:20px;}"
- "#border-bottom-left-radius-50{ border-bottom-left-radius:50%;}"
- "#border-bottom-left-radius-20px-50{ border-bottom-left-radius:20px 50%;}"
actions: []
examples:
- is_default: true
title: 'border-bottom-left-radius: 0;'
description: "<p>Removes any border radius.</p>"
output: <div class="example-output-div border-bottom-left-radius" id="border-bottom-left-radius-0">Hello
world</div>
- is_default: false
title: 'border-bottom-left-radius: 20px;'
description: "<p>You can use <strong>pixel</strong> values.</p>"
output: <div class="example-output-div border-bottom-left-radius" id="border-bottom-left-radius-20px">Hello
world</div>
- is_default: false
title: 'border-bottom-left-radius: 50%;'
description: "<p>You can use <strong>percentage</strong> values. In this example,
the radius starts halfway on the <em>bottom</em> border, and ends halfway on
the <em>left</em> border.</p>"
output: <div class="example-output-div border-bottom-left-radius" id="border-bottom-left-radius-50">Hello
world</div>
- is_default: false
title: 'border-bottom-left-radius: 20px 50%;'
description: "<p>If you set <strong>two values</strong>, the first one is for
the <em>bottom</em> border, the second one for the <em>left</em> border.</p>"
output: <div class="example-output-div border-bottom-left-radius" id="border-bottom-left-radius-20px-50">Hello
world</div>
- title: border-bottom-right-radius
is_shorthand: false
description: "<p>Defines the <strong>radius</strong> of the bottom right corner.</p>"
styles:
- ".border-bottom-right-radius { border-bottom-color: #05ffb0;border-right-color:
hsl(348, 100%, 61%);border-style: solid;border-width: 4px; }"
- "#border-bottom-right-radius-0{ border-bottom-right-radius:0;}"
- "#border-bottom-right-radius-20px{ border-bottom-right-radius:20px;}"
- "#border-bottom-right-radius-50{ border-bottom-right-radius:50%;}"
- "#border-bottom-right-radius-20px-50{ border-bottom-right-radius:20px 50%;}"
actions: []
examples:
- is_default: true
title: 'border-bottom-right-radius: 0;'
description: "<p>Removes any border radius.</p>"
output: <div class="example-output-div border-bottom-right-radius" id="border-bottom-right-radius-0">Hello
world</div>
- is_default: false
title: 'border-bottom-right-radius: 20px;'
description: "<p>You can use <strong>pixel</strong> values.</p>"
output: <div class="example-output-div border-bottom-right-radius" id="border-bottom-right-radius-20px">Hello