File size: 122,774 Bytes
25f22bf |
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 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 |
======================== CODE SNIPPETS ======================== TITLE: Customize Tailwind CSS Animation Theme DESCRIPTION: Illustrates how to extend or override Tailwind CSS animation utilities by defining custom animations within your `@theme` configuration. This allows for project-specific animation definitions. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: CSS CODE: ``` @theme { --animate-wiggle: wiggle 1s ease-in-out infinite; @keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }} ``` LANGUAGE: HTML CODE: ``` <div class="animate-wiggle"> <!-- ... --></div> ``` ---------------------------------------- TITLE: Tailwind CSS Animation Utilities Reference DESCRIPTION: Defines various utility classes for applying CSS animations to elements, including predefined animations like spin, ping, pulse, and bounce, as well as custom animation properties. Each entry specifies the utility class, its corresponding CSS styles, and the underlying keyframe definitions. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: APIDOC CODE: ``` | Class | Styles | | --- | --- | | `animate-spin` | `animation: var(--animate-spin); /* spin 1s linear infinite */ @keyframes spin { to { transform: rotate(360deg); } }` | | `animate-ping` | `animation: var(--animate-ping); /* ping 1s cubic-bezier(0, 0, 0.2, 1) infinite */ @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }` | | `animate-pulse` | `animation: var(--animate-pulse); /* pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite */ @keyframes pulse { 50% { opacity: 0.5; } }` | | `animate-bounce` | `animation: var(--animate-bounce); /* bounce 1s infinite */ @keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }` | | `animate-none` | `animation: none;` | | `animate-(<custom-property>)` | `animation: var(<custom-property>);` | | `animate-[<value>]` | `animation: <value>;` ``` ---------------------------------------- TITLE: Apply Responsive Animations with Tailwind CSS DESCRIPTION: Explains how to use breakpoint variants (e.g., `md:`) to apply animation utilities only at specific screen sizes and above. This enables responsive animation behavior. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <div class="animate-none md:animate-spin ..."> <!-- ... --></div> ``` ---------------------------------------- TITLE: TailwindCSS Transitions & Animation Utilities DESCRIPTION: Documentation for TailwindCSS utilities that manage CSS transitions and animations. These utilities define properties to animate, duration, timing functions, delays, and custom animations. SOURCE: https://tailwindcss.com/docs/color LANGUAGE: APIDOC CODE: ``` transition-property transition-behavior transition-duration transition-timing-function transition-delay animation ``` ---------------------------------------- TITLE: Using Custom Animation Values in Tailwind CSS DESCRIPTION: Demonstrates how to define and apply custom animation values using arbitrary value syntax. This allows for highly specific animation properties directly within your HTML classes. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <div class="animate-[wiggle_1s_ease-in-out_infinite] ..."> <!-- ... --></div> ``` LANGUAGE: HTML CODE: ``` <div class="animate-(--my-animation) ..."> <!-- ... --></div> ``` ---------------------------------------- TITLE: TailwindCSS Transition and Animation Utilities DESCRIPTION: Documentation for TailwindCSS utilities used to define CSS transitions and animations, including properties to animate, duration, timing functions, and delays. SOURCE: https://tailwindcss.com/docs/box-shadow LANGUAGE: APIDOC CODE: ``` transition-property transition-behavior transition-duration transition-timing-function transition-delay animation ``` ---------------------------------------- TITLE: Apply Spin Animation to Button for Loading Indicators DESCRIPTION: Demonstrates how to use the `animate-spin` utility class to add a linear spin animation to an SVG icon within a button. This is commonly used to indicate a processing or loading state to the user. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <button type="button" class="bg-indigo-500 ..." disabled> <svg class="mr-3 size-5 animate-spin ..." viewBox="0 0 24 24"> <!-- ... --> </svg> Processing…</button> ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: Documents the Tailwind CSS utility classes for defining CSS transitions and animations, including properties like duration, timing function, delay, and general animation control. SOURCE: https://tailwindcss.com/docs/backface-visibility LANGUAGE: APIDOC CODE: ``` Transitions & Animation: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation ``` ---------------------------------------- TITLE: Implement Ping Animation for Notification Badges DESCRIPTION: Illustrates the application of the `animate-ping` utility to create a scaling and fading effect, similar to a radar ping or water ripple. This animation is particularly useful for drawing attention to elements like notification badges. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <span class="relative flex size-3"> <span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-sky-400 opacity-75"></span> <span class="relative inline-flex size-3 rounded-full bg-sky-500"></span></span> ``` ---------------------------------------- TITLE: TailwindCSS Transition and Animation Utilities DESCRIPTION: Documents TailwindCSS utilities for defining CSS transitions and animations. These utilities control which properties transition, the duration, timing function, and delay of transitions, as well as general animation properties. SOURCE: https://tailwindcss.com/docs/background-image LANGUAGE: APIDOC CODE: ``` Transition & Animation Utilities: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Defines how transitions behave for discrete properties. - transition-duration: Sets the duration of a transition effect. - transition-timing-function: Specifies the speed curve of a transition effect. - transition-delay: Specifies when the transition effect will start. - animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions & Animation Utilities DESCRIPTION: This section covers CSS properties for controlling animated transitions between states and defining complex animations, including timing, duration, and delay. SOURCE: https://tailwindcss.com/docs/text-color LANGUAGE: APIDOC CODE: ``` CSS Transitions & Animation Properties: transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Specifies whether a transition should be applied to discrete properties. transition-duration: Specifies how many seconds or milliseconds a transition effect takes to complete. transition-timing-function: Specifies the speed curve of the transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Conditionally Apply Animations for Reduced Motion in Tailwind CSS DESCRIPTION: Shows how to use `motion-safe` and `motion-reduce` variants to conditionally apply animations based on user preferences for reduced motion. This ensures accessibility by respecting system settings. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <button type="button" class="bg-indigo-600 ..." disabled> <svg class="mr-3 size-5 motion-safe:animate-spin ..." viewBox="0 0 24 24"> <!-- ... --> </svg> Processing</button> ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: Documents Tailwind CSS utility classes for controlling CSS transitions and animations, including properties, duration, timing functions, delays, and general animation definitions. SOURCE: https://tailwindcss.com/docs/filter-drop-shadow LANGUAGE: APIDOC CODE: ``` transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Defines whether a transition is applied to discrete properties. transition-duration: Sets the duration of a transition effect. transition-timing-function: Specifies the speed curve of a transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all animation properties. ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: Documentation for Tailwind CSS utilities used to define CSS transitions and animations, including property, duration, timing function, delay, and animation properties. SOURCE: https://tailwindcss.com/docs/padding LANGUAGE: APIDOC CODE: ``` Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Specifies whether a transition should be applied to discrete properties. - transition-duration: Specifies how many seconds or milliseconds a transition effect takes to complete. - transition-timing-function: Specifies the speed curve of the transition effect. - transition-delay: Specifies when the transition effect will start. - animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Define Animation Keyframes within Tailwind CSS Theme DESCRIPTION: This CSS snippet shows how to define `@keyframes` rules for `--animate-*` theme variables directly within the `@theme` block. This ensures that the animation keyframes are included in your generated CSS when the corresponding animation utility is used. SOURCE: https://tailwindcss.com/docs/theme LANGUAGE: css CODE: ``` @import "tailwindcss";@theme { --animate-fade-in-scale: fade-in-scale 0.3s ease-out; @keyframes fade-in-scale { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }} ``` ---------------------------------------- TITLE: Add Pulse Animation with Tailwind CSS DESCRIPTION: Demonstrates how to create a skeleton loader effect using the `animate-pulse` utility class in Tailwind CSS. This utility makes an element gently fade in and out, ideal for indicating loading states. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <div class="mx-auto w-full max-w-sm rounded-md border border-blue-300 p-4"> <div class="flex animate-pulse space-x-4"> <div class="size-10 rounded-full bg-gray-200"></div> <div class="flex-1 space-y-6 py-1"> <div class="h-2 rounded bg-gray-200"></div> <div class="space-y-3"> <div class="grid grid-cols-3 gap-4"> <div class="col-span-2 h-2 rounded bg-gray-200"></div> <div class="col-span-1 h-2 rounded bg-gray-200"></div> </div> <div class="h-2 rounded bg-gray-200"></div> </div> </div> </div></div> ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: API documentation for Tailwind CSS utilities that define how elements transition between states and apply custom animations. SOURCE: https://tailwindcss.com/docs/text-decoration-color LANGUAGE: APIDOC CODE: ``` Transitions & Animation Properties: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Utilities DESCRIPTION: API documentation for Tailwind CSS utility classes that manage CSS transitions and animations. These utilities control properties, duration, timing functions, delays, and general animation behavior. SOURCE: https://tailwindcss.com/docs/flex-basis LANGUAGE: APIDOC CODE: ``` transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Defines whether a transition is applied to discrete properties. transition-duration: Sets the duration of a transition effect. transition-timing-function: Specifies the speed curve of a transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions & Animation Utilities DESCRIPTION: Documents utility classes for defining CSS transitions and animations, controlling properties like duration, timing, and delay. SOURCE: https://tailwindcss.com/docs/border-width LANGUAGE: APIDOC CODE: ``` Transitions & Animation: transition-property: Utility for specifying the CSS properties to which a transition effect should be applied. transition-behavior: Utility for controlling how transitions behave. transition-duration: Utility for setting the duration of a transition effect. transition-timing-function: Utility for setting the speed curve of a transition effect. transition-delay: Utility for setting the delay before a transition effect starts. animation: Utility for applying a CSS animation. ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: Lists Tailwind CSS utility classes for defining CSS transitions and animations. These utilities control properties like transition duration, timing functions, delays, and general animation behavior. SOURCE: https://tailwindcss.com/docs/text-decoration-style LANGUAGE: APIDOC CODE: ``` transition-property: transition-property transition-behavior: transition-behavior transition-duration: transition-duration transition-timing-function: transition-timing-function transition-delay: transition-delay animation: animation ``` ---------------------------------------- TITLE: Add Bounce Animation with Tailwind CSS DESCRIPTION: Illustrates the use of the `animate-bounce` utility class to make an element bounce up and down. This is commonly used for visual cues like 'scroll down' indicators. SOURCE: https://tailwindcss.com/docs/animation LANGUAGE: HTML CODE: ``` <svg class="size-6 animate-bounce ..."> <!-- ... --></svg> ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utility Classes DESCRIPTION: Documents Tailwind CSS utility classes for defining CSS transitions and animations. These utilities control properties like transition duration, timing functions, delays, and custom animation definitions. SOURCE: https://tailwindcss.com/docs/user-select LANGUAGE: APIDOC CODE: ``` Transitions & Animation Utilities: transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Defines how transitions behave. transition-duration: Sets the duration of a transition effect. transition-timing-function: Specifies the speed curve of a transition effect. transition-delay: Specifies when a transition effect will start. animation: Applies an animation to an element. ``` ---------------------------------------- TITLE: CSS Transitions and Animation Properties DESCRIPTION: Documentation for CSS properties that enable smooth transitions between property values and define complex animations. SOURCE: https://tailwindcss.com/docs/margin LANGUAGE: APIDOC CODE: ``` transition-property: Specifies the name of the CSS properties to which a transition effect should be applied. transition-behavior: Specifies whether a transition should be applied to discrete properties. transition-duration: Specifies the length of time a transition takes to complete. transition-timing-function: Specifies the speed curve of the transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Hide Animations for Reduced Motion with Tailwind CSS `motion-reduce` DESCRIPTION: Shows how to use the `motion-reduce` variant to conditionally hide animations (like a spinner) when the user has requested reduced motion. The example applies `motion-reduce:hidden` to an SVG element within a button, ensuring a smoother experience for users with motion sensitivities. SOURCE: https://tailwindcss.com/docs/hover-focus-and-other-states LANGUAGE: HTML CODE: ``` <button type="button" class="bg-indigo-500 ..." disabled> <svg class="animate-spin motion-reduce:hidden ..." viewBox="0 0 24 24"><!-- ... --></svg> Processing...</button> ``` ---------------------------------------- TITLE: Tailwind CSS Transitions & Animation Utilities Reference DESCRIPTION: Documents the utility classes available in Tailwind CSS for defining transition properties, duration, timing functions, delay, and general animation. SOURCE: https://tailwindcss.com/docs/outline-width LANGUAGE: APIDOC CODE: ``` ### Transitions & Animation * transition-property * transition-behavior * transition-duration * transition-timing-function * transition-delay * animation ``` ---------------------------------------- TITLE: TailwindCSS Transition and Animation Utilities DESCRIPTION: This section details TailwindCSS utilities for defining CSS transitions and animations, including properties for specifying the transition property, behavior, duration, timing functions, delays, and general animation control. These are essential for creating dynamic and interactive user interfaces. SOURCE: https://tailwindcss.com/docs/border-color LANGUAGE: APIDOC CODE: ``` transition-property transition-behavior transition-duration transition-timing-function transition-delay animation ``` ---------------------------------------- TITLE: CSS Transitions and Animation Properties Reference DESCRIPTION: Documentation for CSS properties used to define smooth transitions and complex animations, including duration, timing functions, and delays, often used with Tailwind CSS utilities. SOURCE: https://tailwindcss.com/docs/background-color LANGUAGE: APIDOC CODE: ``` transition-property transition-behavior transition-duration transition-timing-function transition-delay animation ``` ---------------------------------------- TITLE: Tailwind CSS Transition and Animation Utilities DESCRIPTION: This section covers Tailwind CSS utility classes for defining transitions and animations, including properties for duration, timing functions, and delays. These classes enable smooth visual changes and dynamic effects. SOURCE: https://tailwindcss.com/docs/float LANGUAGE: APIDOC CODE: ``` Tailwind CSS Transition & Animation Utilities: - transition-property: Utilities for controlling which CSS properties transition. - transition-behavior: Utilities for controlling the transition behavior. - transition-duration: Utilities for controlling the duration of CSS transitions. - transition-timing-function: Utilities for controlling the timing function of CSS transitions. - transition-delay: Utilities for controlling the delay of CSS transitions. - animation: Utilities for controlling CSS animations. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Utilities DESCRIPTION: This section covers Tailwind CSS utility classes for managing CSS transitions and animations. It includes properties for defining which CSS properties to transition, transition behavior, duration, timing functions, delay, and general animation properties. SOURCE: https://tailwindcss.com/docs/line-height LANGUAGE: APIDOC CODE: ``` Transitions & Animation: - transition-property: Utilities for controlling which CSS properties transition. - transition-behavior: Utilities for controlling the transition behavior. - transition-duration: Utilities for controlling the duration of CSS transitions. - transition-timing-function: Utilities for controlling the timing function of CSS transitions. - transition-delay: Utilities for controlling the delay of CSS transitions. - animation: Utilities for controlling CSS animations. ``` ---------------------------------------- TITLE: TailwindCSS Transition and Animation Utilities DESCRIPTION: This section provides TailwindCSS utilities for defining CSS transitions and animations, including properties for duration, timing functions, and delays, enabling smooth visual changes. SOURCE: https://tailwindcss.com/docs/border-radius LANGUAGE: APIDOC CODE: ``` transition-property transition-behavior transition-duration transition-timing-function transition-delay animation ``` ---------------------------------------- TITLE: CSS Transitions & Animation Properties DESCRIPTION: Documentation for CSS properties used to define smooth transitions and complex animations for elements, controlling property changes over time, duration, timing functions, and delays. SOURCE: https://tailwindcss.com/docs/max-width LANGUAGE: APIDOC CODE: ``` transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Specifies whether a transition should be interruptible. transition-duration: Specifies how many seconds or milliseconds a transition effect takes to complete. transition-timing-function: Specifies the speed curve of the transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all the animation properties. ``` ---------------------------------------- TITLE: Animate React Component with Tailwind CSS Variable DESCRIPTION: Demonstrates animating a React component's background color using a CSS variable, specifically a Tailwind CSS color variable, with the Motion library. This approach allows dynamic styling based on theme values. SOURCE: https://tailwindcss.com/docs/theme LANGUAGE: JSX CODE: ``` <motion.div animate={{ backgroundColor: "var(--color-blue-500)" }} /> ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Utilities DESCRIPTION: This section lists Tailwind CSS utility classes for defining CSS transitions and animations. These include properties for controlling which CSS properties to transition, duration, timing functions, delay, and custom animations. SOURCE: https://tailwindcss.com/docs/installation/tailwind-cli LANGUAGE: APIDOC CODE: ``` transition-property: Utilities for controlling which CSS properties transition. transition-behavior: Utilities for controlling the transition behavior. transition-duration: Utilities for controlling the duration of CSS transitions. transition-timing-function: Utilities for controlling the timing function of CSS transitions. transition-delay: Utilities for controlling the delay of CSS transitions. animation: Utilities for controlling custom CSS animations. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Properties DESCRIPTION: Documentation for Tailwind CSS utilities that control CSS transitions and animations, enabling smooth changes in element properties over time. SOURCE: https://tailwindcss.com/docs/width LANGUAGE: APIDOC CODE: ``` transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Defines whether a transition is applied to discrete properties. transition-duration: Specifies how long a transition animation should take to complete. transition-timing-function: Specifies the speed curve of the transition effect. transition-delay: Specifies when the transition effect will start. animation: A shorthand property for all animation properties. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions & Animation Utility Classes DESCRIPTION: Reference for Tailwind CSS utility classes for controlling CSS transitions and animations, including property, duration, timing, and delay. SOURCE: https://tailwindcss.com/docs/background-size LANGUAGE: APIDOC CODE: ``` transition-property: Utilities for controlling which CSS properties transition. transition-behavior: Utilities for controlling transition behavior. transition-duration: Utilities for controlling the duration of CSS transitions. transition-timing-function: Utilities for controlling the timing function of CSS transitions. transition-delay: Utilities for controlling the delay of CSS transitions. animation: Utilities for controlling CSS animations. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Utilities DESCRIPTION: Documents Tailwind CSS utility classes for defining and controlling CSS transitions and animations, including properties, duration, timing functions, and delays. SOURCE: https://tailwindcss.com/docs/table-layout LANGUAGE: APIDOC CODE: ``` transition-property: Utilities for controlling which CSS properties transition. transition-behavior: Utilities for controlling the transition behavior. transition-duration: Utilities for controlling the duration of CSS transitions. transition-timing-function: Utilities for controlling the timing function of CSS transitions. transition-delay: Utilities for controlling the delay of CSS transitions. animation: Utilities for controlling CSS animations. ``` ---------------------------------------- TITLE: Tailwind CSS Transitions and Animation Utilities DESCRIPTION: Documentation for Tailwind CSS utilities that manage CSS transitions and animations, allowing for smooth changes in element properties over time. SOURCE: https://tailwindcss.com/docs/white-space LANGUAGE: APIDOC CODE: ``` transition-property: Utilities for controlling which CSS properties transition. transition-behavior: Utilities for controlling the transition behavior. transition-duration: Utilities for controlling the duration of CSS transitions. transition-timing-function: Utilities for controlling the timing function of CSS transitions. transition-delay: Utilities for controlling the delay of CSS transitions. animation: Utilities for controlling CSS animations. ``` ---------------------------------------- TITLE: Tailwind CSS Layout, Animation, and Transform Utilities Reference DESCRIPTION: This section covers Tailwind CSS utilities for table styling, transitions, animations, and 2D/3D transforms. It includes properties for collapsing borders, spacing, table layout, caption positioning, transition timing, animation definitions, backface visibility, perspective, rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/installation/framework-guides/rspack/vue LANGUAGE: APIDOC CODE: ``` Tables: border-collapse: Utilities for controlling whether table borders are collapsed into a single border or separated. border-spacing: Utilities for controlling the distance between the borders of adjacent cells in a table. table-layout: Utilities for controlling the algorithm used to lay out table cells, rows, and columns. caption-side: Utilities for controlling the placement of a table caption. Transitions & Animation: transition-property: Utilities for controlling which CSS properties transition. transition-behavior: Utilities for controlling the transition behavior. transition-duration: Utilities for controlling the duration of CSS transitions. transition-timing-function: Utilities for controlling the timing function of CSS transitions. transition-delay: Utilities for controlling the delay of CSS transitions. animation: Utilities for controlling CSS animations. Transforms: backface-visibility: Utilities for controlling whether the back face of an element is visible when rotated. perspective: Utilities for controlling the distance between the user and the z=0 plane. perspective-origin: Utilities for controlling the origin of the perspective property. rotate: Utilities for rotating elements. scale: Utilities for scaling elements. skew: Utilities for skewing elements. transform: General utilities for applying 2D or 3D transforms to an element. transform-origin: Utilities for controlling the origin of an element's transform. transform-style: Utilities for controlling how nested elements are rendered in 3D space. translate: Utilities for translating elements. ``` ---------------------------------------- TITLE: Apply Basic Transition Timing Functions in HTML DESCRIPTION: Demonstrates how to apply standard Tailwind CSS transition timing utility classes like `ease-in`, `ease-out`, and `ease-in-out` to HTML elements for controlling animation easing. These classes are typically combined with duration utilities. SOURCE: https://tailwindcss.com/docs/transition-timing-function LANGUAGE: HTML CODE: ``` <button class="duration-300 ease-in ...">Button A</button><button class="duration-300 ease-out ...">Button B</button><button class="duration-300 ease-in-out ...">Button C</button> ``` ---------------------------------------- TITLE: Define Default Tailwind CSS Theme Variables and Keyframes DESCRIPTION: This CSS snippet defines a collection of custom properties (CSS variables) for various theme aspects such as perspective, aspect ratios, easing functions, and animation properties. It also includes the corresponding `@keyframes` rules for `spin`, `ping`, `pulse`, and `bounce` animations, which are referenced by the animation variables. SOURCE: https://tailwindcss.com/docs/theme LANGUAGE: css CODE: ``` 00px; --perspective-midrange: 800px; --perspective-distant: 1200px; --aspect-video: 16 / 9; --ease-in: cubic-bezier(0.4, 0, 1, 1); --ease-out: cubic-bezier(0, 0, 0.2, 1); --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --animate-spin: spin 1s linear infinite; --animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; --animate-bounce: bounce 1s infinite; @keyframes spin { to { transform: rotate(360deg); } } @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } } @keyframes pulse { 50% { opacity: 0.5; } } @keyframes bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } } ``` ---------------------------------------- TITLE: Tailwind CSS Utility Class Reference DESCRIPTION: This entry documents various Tailwind CSS utility classes across different categories, providing a comprehensive overview of available styling options. It includes classes for visual effects, filters, table layouts, animations, transformations, user interaction, SVG styling, and accessibility. SOURCE: https://tailwindcss.com/docs/filter-hue-rotate LANGUAGE: APIDOC CODE: ``` Tailwind CSS Utility Classes: Effects: - box-shadow: Applies box shadow. - text-shadow: Applies text shadow. - opacity: Sets the opacity level. - mix-blend-mode: Sets how an element's content should blend with its background. - background-blend-mode: Sets how an element's background images should blend with each other and with the element's background color. - mask-clip: Defines the mask clipping area. - mask-composite: Defines the compositing operation used to combine the current mask with the mask below it. - mask-image: Sets the image that is used as a mask layer for an element. - mask-mode: Sets whether the mask image is interpreted as a luminance mask or an alpha mask. - mask-origin: Specifies the origin of the mask image. - mask-position: Sets the initial position of a mask image. - mask-repeat: Sets how mask images are repeated. - mask-size: Specifies the size of the mask image. - mask-type: Specifies whether a mask is interpreted as a luminance mask or an alpha mask. Filters: - filter: Applies graphical effects like blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, saturate, sepia. - blur: Applies a Gaussian blur to the input image. - brightness: Adjusts the brightness of the input image. - contrast: Adjusts the contrast of the input image. - drop-shadow: Applies a drop shadow to the input image. - grayscale: Converts the input image to grayscale. - hue-rotate: Applies a hue rotation to the input image. - invert: Inverts the colors of the input image. - saturate: Saturates the input image. - sepia: Converts the input image to sepia. - backdrop-filter: Applies graphical effects to the area behind an element. - blur: Applies a Gaussian blur to the backdrop. - brightness: Adjusts the brightness of the backdrop. - contrast: Adjusts the contrast of the backdrop. - grayscale: Converts the backdrop to grayscale. - hue-rotate: Applies a hue rotation to the backdrop. - invert: Inverts the colors of the backdrop. - opacity: Sets the opacity of the backdrop. - saturate: Saturates the backdrop. - sepia: Converts the backdrop to sepia. Tables: - border-collapse: Sets whether table borders are collapsed into a single border or separated. - border-spacing: Sets the distance between the borders of adjacent cells. - table-layout: Sets the algorithm used to lay out table cells, rows, and columns. - caption-side: Specifies the placement of a table caption. Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Defines whether a transition is applied to discrete properties. - transition-duration: Specifies the duration of a transition effect. - transition-timing-function: Specifies the speed curve of a transition effect. - transition-delay: Specifies when a transition effect will start. - animation: Applies an animation to an element. Transforms: - backface-visibility: Defines whether the back face of an element is visible when turned towards the user. - perspective: Defines how far the object is from the user. - perspective-origin: Defines the origin of the perspective property. - rotate: Rotates an element. - scale: Scales an element. - skew: Skews an element. - transform: Applies a 2D or 3D transformation to an element. - transform-origin: Sets the origin for transformations. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Translates an element. Interactivity: - accent-color: Sets the accent color for user-interface controls. - appearance: Controls the native appearance of UI widgets. - caret-color: Sets the color of the text insertion caret. - color-scheme: Sets the color scheme for an element. - cursor: Specifies the mouse cursor to be displayed when pointing over an element. - field-sizing: Controls the sizing of form fields. - pointer-events: Sets whether an element is the target of pointer events. - resize: Specifies whether an element is resizable by the user. - scroll-behavior: Specifies the scrolling behavior for a scrolling box. - scroll-margin: Sets the margin of the scroll snap area. - scroll-padding: Sets the padding of the scroll snap area. - scroll-snap-align: Specifies the snap position of an element within its scroll container. - scroll-snap-stop: Specifies whether the scroll container must snap to a snap position. - scroll-snap-type: Specifies how strictly snap points are enforced on the scroll container. - touch-action: Specifies how a touch screen user can interact with the element. - user-select: Controls whether the user can select text. - will-change: Hints to browsers how an element will be transformed. SVG: - fill: Sets the color of the interior of an SVG shape. - stroke: Sets the color of the outline of an SVG shape. - stroke-width: Sets the width of the outline of an SVG shape. Accessibility: - forced-color-adjust: Controls how user agents adjust colors in forced color modes. ``` ---------------------------------------- TITLE: Tailwind CSS Table, Transition, Transform, Interactivity, SVG, and Accessibility Utilities DESCRIPTION: This comprehensive section documents various Tailwind CSS utility classes for styling tables, controlling transitions and animations, applying 2D/3D transforms, managing user interactivity, styling SVG elements, and enhancing accessibility. Each utility maps directly to a specific CSS property, providing granular control over element presentation and behavior. SOURCE: https://tailwindcss.com/docs/place-self LANGUAGE: APIDOC CODE: ``` Tables: - border-collapse: Sets whether table borders are collapsed into a single border or separated. - border-spacing: Sets the distance between the borders of adjacent cells. - table-layout: Sets the algorithm used to lay out table cells, rows, and columns. - caption-side: Specifies the placement of a table caption. Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Defines whether a transition is applied to a property's discrete or animatable values. - transition-duration: Sets the duration of a transition effect. - transition-timing-function: Specifies the speed curve of a transition effect. - transition-delay: Specifies when the transition effect will start. - animation: A shorthand property for all animation properties. Transforms: - backface-visibility: Defines whether the back face of an element is visible when facing the user. - perspective: Defines how far the object is from the user. - perspective-origin: Sets the origin for the perspective property. - rotate: Applies a 2D or 3D rotation transform. - scale: Applies a 2D or 3D scaling transform. - skew: Applies a 2D skew transform. - transform: Applies a 2D or 3D transform to an element. - transform-origin: Sets the origin for transformations. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Applies a 2D or 3D translation transform. Interactivity: - accent-color: Sets the accent color for user-interface controls. - appearance: Controls the native appearance of UI widgets. - caret-color: Sets the color of the text insertion caret. - color-scheme: Sets the color scheme for an element. - cursor: Specifies the type of cursor to be displayed. - field-sizing: Controls the sizing of form fields. - pointer-events: Defines whether an element reacts to pointer events. - resize: Specifies whether an element is resizable by the user. - scroll-behavior: Specifies the scrolling behavior for a scrolling box. - scroll-margin: Sets the margin of the scroll snap area. - scroll-padding: Sets the padding of the scroll snap area. - scroll-snap-align: Specifies the snap position for a scroll container. - scroll-snap-stop: Specifies whether the scroll container must snap to a snap point. - scroll-snap-type: Specifies how strictly snap points are enforced. - touch-action: Defines how a touch-action property behaves. - user-select: Controls whether the user can select text. - will-change: Hints to browsers about what changes are expected to an element. SVG: - fill: Sets the color of the interior of an SVG shape. - stroke: Sets the color of the outline of an SVG shape. - stroke-width: Sets the width of the outline of an SVG shape. Accessibility: - forced-color-adjust: Controls how user agents adjust colors in forced color modes. ``` ---------------------------------------- TITLE: Tailwind CSS Layout and Interactivity Utilities DESCRIPTION: This section outlines Tailwind CSS utility classes for table styling, transitions, animations, transforms, interactivity, SVG, and accessibility. It covers properties like border collapse, table layout, transition properties, animation, 2D/3D transforms, cursor styles, scroll behavior, and user selection. SOURCE: https://tailwindcss.com/docs/flex-direction LANGUAGE: APIDOC CODE: ``` Tables: - border-collapse: Sets whether table borders are collapsed into a single border or separated. - border-spacing: Sets the distance between the borders of adjacent cells. - table-layout: Sets the algorithm used to lay out table cells, rows, and columns. - caption-side: Specifies the placement of a table caption. Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Specifies whether a transition is applied to a property's discrete or animatable values. - transition-duration: Sets the duration of a transition effect. - transition-timing-function: Specifies the speed curve of a transition effect. - transition-delay: Sets when a transition effect will start. - animation: A shorthand property for all animation properties. Transforms: - backface-visibility: Determines whether the back face of an element is visible when turned towards the user. - perspective: Specifies the distance between the user and the z=0 plane. - perspective-origin: Sets the origin for the perspective property. - rotate: Rotates an element. - scale: Scales an element. - skew: Skews an element. - transform: Applies a 2D or 3D transformation to an element. - transform-origin: Sets the origin for transformations. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Translates an element. Interactivity: - accent-color: Sets the accent color for user-interface controls generated by the element. - appearance: Controls the native appearance of UI widgets. - caret-color: Sets the color of the text insertion caret. - color-scheme: Sets the color scheme for an element. - cursor: Specifies the type of cursor to be displayed. - field-sizing: Controls the sizing of form fields. - pointer-events: Sets under what circumstances (if any) a graphic element can be the target of pointer events. - resize: Specifies whether an element is resizable by the user. - scroll-behavior: Specifies the scrolling behavior for a scrolling box. - scroll-margin: Sets the margin of the scroll snap area. - scroll-padding: Sets the padding of the scroll snap area. - scroll-snap-align: Specifies the snap position for a scroll container. - scroll-snap-stop: Specifies whether the scroll container must snap to a snap point. - scroll-snap-type: Specifies how strictly snap points are enforced on the scroll container. - touch-action: Specifies how a touch screen user can interact with the element. - user-select: Controls whether the user can select text. - will-change: Hints to browsers about what changes will be made to an element. SVG: - fill: Sets the color of the interior of an SVG shape. - stroke: Sets the color of the outline of an SVG shape. - stroke-width: Sets the width of the outline of an SVG shape. Accessibility: - forced-color-adjust: Controls whether the user agent may adjust the colors of the element. ``` ---------------------------------------- TITLE: Tailwind CSS Utility Class Reference DESCRIPTION: A comprehensive reference of Tailwind CSS utility classes categorized by their functional groups, including Effects, Filters, Tables, Transitions & Animation, Transforms, Interactivity, SVG, and Accessibility. Each class maps to a specific CSS property and value. SOURCE: https://tailwindcss.com/docs/box-decoration-break LANGUAGE: APIDOC CODE: ``` Effects: box-shadow: Applies box-shadow CSS property. text-shadow: Applies text-shadow CSS property. opacity: Controls element opacity. mix-blend-mode: Sets how an element's content should blend with its background. background-blend-mode: Sets how an element's background images should blend with each other and with the element's background color. mask-clip: Specifies the mask painting area. mask-composite: Defines how multiple mask images are composited. mask-image: Sets the image to be used as a mask layer. mask-mode: Specifies whether the mask image is interpreted as a luminance mask or an alpha mask. mask-origin: Specifies the mask positioning area. mask-position: Sets the initial position of a mask image. mask-repeat: Sets how mask images are repeated. mask-size: Specifies the size of the mask images. mask-type: Specifies whether the mask image is interpreted as a luminance mask or an alpha mask. Filters: filter: Applies graphical effects like blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, saturate, sepia. blur: Applies a Gaussian blur to the input image. brightness: Adjusts the brightness of the input image. contrast: Adjusts the contrast of the input image. drop-shadow: Applies a drop shadow effect. grayscale: Converts the input image to grayscale. hue-rotate: Applies a hue rotation to the input image. invert: Inverts the colors of the input image. saturate: Saturates the input image. sepia: Converts the input image to sepia. backdrop-filter: Applies graphical effects to the area behind an element. blur: Applies a Gaussian blur to the backdrop. brightness: Adjusts the brightness of the backdrop. contrast: Adjusts the contrast of the backdrop. grayscale: Converts the backdrop to grayscale. hue-rotate: Applies a hue rotation to the backdrop. invert: Inverts the colors of the backdrop. opacity: Adjusts the opacity of the backdrop. saturate: Saturates the backdrop. sepia: Converts the backdrop to sepia. Tables: border-collapse: Sets whether table borders are collapsed into a single border or separated. border-spacing: Specifies the distance between the borders of adjacent cells. table-layout: Sets the algorithm used to lay out table cells, rows, and columns. caption-side: Specifies the placement of a table caption. Transitions & Animation: transition-property: Specifies the CSS properties to which a transition effect should be applied. transition-behavior: Defines whether a transition is interruptible. transition-duration: Sets the duration of a transition effect. transition-timing-function: Specifies the speed curve of a transition effect. transition-delay: Sets the delay before a transition effect starts. animation: Applies an animation to an element. Transforms: backface-visibility: Determines whether the back face of an element is visible when turned towards the user. perspective: Gives a 3D-positioned element some perspective. perspective-origin: Sets the origin of the perspective property. rotate: Rotates an element. scale: Scales an element. skew: Skews an element. transform: Applies a 2D or 3D transformation to an element. transform-origin: Sets the origin for transformations of an element. transform-style: Specifies how nested elements are rendered in 3D space. translate: Translates an element. Interactivity: accent-color: Sets the accent color for user-interface controls generated by the element. appearance: Controls the native appearance of UI widgets. caret-color: Sets the color of the text insertion caret. color-scheme: Specifies the color scheme an element is comfortable with. cursor: Sets the type of mouse cursor to show when the mouse pointer is over an element. field-sizing: Controls the sizing of form fields. pointer-events: Sets whether an element is the target of pointer events. resize: Sets whether an element is resizable by the user. scroll-behavior: Specifies the scrolling behavior for a scrolling box. scroll-margin: Sets the margin of the scroll snap area. scroll-padding: Sets the padding of the scroll snap area. scroll-snap-align: Specifies the snap position for a scroll container. scroll-snap-stop: Specifies whether the scroll container must snap to a snap point. scroll-snap-type: Specifies how strictly snap points are enforced on the scroll container. touch-action: Specifies how a touch event should be handled. user-select: Controls whether the user can select text. will-change: Hints to browsers about what changes will be made to an element. SVG: fill: Sets the color of the fill paint operation. stroke: Sets the color of the stroke paint operation. stroke-width: Sets the width of the stroke paint operation. Accessibility: forced-color-adjust: Controls how colors are adjusted in forced color modes. ``` ---------------------------------------- TITLE: Apply Animations Safely with Tailwind CSS `motion-safe` Variant DESCRIPTION: Illustrates the use of `motion-safe` variant to apply transitions and hover effects only when the user has *not* requested reduced motion. This is useful for avoiding redundant 'undoing' of styles when `motion-reduce` would be cumbersome, providing a cleaner way to manage motion-related styles. SOURCE: https://tailwindcss.com/docs/hover-focus-and-other-states LANGUAGE: HTML CODE: ``` <!-- Using `motion-reduce` can mean lots of "undoing" styles --><button class="transition hover:-translate-y-0.5 motion-reduce:transition-none motion-reduce:hover:translate-y-0 ..."> Save changes</button><!-- Using `motion-safe` is less code in these situations --><button class="motion-safe:transition motion-safe:hover:-translate-x-0.5 ...">Save changes</button> ``` ---------------------------------------- TITLE: Tailwind CSS Utility Categories and Properties Reference DESCRIPTION: A structured reference of core Tailwind CSS utility categories and the CSS properties they control, including effects, filters, table styling, transitions, animations, transforms, interactivity, SVG, and accessibility. SOURCE: https://tailwindcss.com/docs/installation/framework-guides/sveltekit LANGUAGE: APIDOC CODE: ``` Effects: - box-shadow - text-shadow - opacity - mix-blend-mode - background-blend-mode - mask-clip - mask-composite - mask-image - mask-mode - mask-origin - mask-position - mask-repeat - mask-size - mask-type Filters: - filter - blur - brightness - contrast - drop-shadow - grayscale - hue-rotate - invert - saturate - sepia - backdrop-filter - blur - brightness - contrast - grayscale - hue-rotate - invert - opacity - saturate - sepia Tables: - border-collapse - border-spacing - table-layout - caption-side Transitions & Animation: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation Transforms: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate Interactivity: - accent-color - appearance - caret-color - color-scheme - cursor - field-sizing - pointer-events - resize - scroll-behavior - scroll-margin - scroll-padding - scroll-snap-align - scroll-snap-stop - scroll-snap-type - touch-action - user-select - will-change SVG: - fill - stroke - stroke-width Accessibility: - forced-color-adjust ``` ---------------------------------------- TITLE: Apply Custom Transition Timing Functions in HTML DESCRIPTION: Illustrates the use of arbitrary value syntax (`ease-[<value>]`) and CSS variable syntax (`ease-(<custom-property>)`) in Tailwind CSS to define custom transition timing functions for HTML elements. This allows for highly specific easing curves beyond the predefined utilities. SOURCE: https://tailwindcss.com/docs/transition-timing-function LANGUAGE: HTML CODE: ``` <button class="ease-[cubic-bezier(0.95,0.05,0.795,0.035)] ..."> <!-- ... --></button> ``` LANGUAGE: HTML CODE: ``` <button class="ease-(--my-ease) ..."> <!-- ... --></button> ``` ---------------------------------------- TITLE: Tailwind CSS Utility Class Reference DESCRIPTION: A comprehensive reference for various Tailwind CSS utility classes categorized by their functional area, including visual effects, filters, table styling, transitions, animations, transformations, interactivity, SVG properties, and accessibility. SOURCE: https://tailwindcss.com/docs/flex LANGUAGE: APIDOC CODE: ``` Effects: - box-shadow - text-shadow - opacity - mix-blend-mode - background-blend-mode - mask-clip - mask-composite - mask-image - mask-mode - mask-origin - mask-position - mask-repeat - mask-size - mask-type Filters: - filter: - blur - brightness - contrast - drop-shadow - grayscale - hue-rotate - invert - saturate - sepia - backdrop-filter: - blur - brightness - contrast - grayscale - hue-rotate - invert - opacity - saturate - sepia Tables: - border-collapse - border-spacing - table-layout - caption-side Transitions & Animation: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation Transforms: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate Interactivity: - accent-color - appearance - caret-color - color-scheme - cursor - field-sizing - pointer-events - resize - scroll-behavior - scroll-margin - scroll-padding - scroll-snap-align - scroll-snap-stop - scroll-snap-type - touch-action - user-select - will-change SVG: - fill - stroke - stroke-width Accessibility: - forced-color-adjust ``` ---------------------------------------- TITLE: Tailwind CSS Transition Timing Function Utilities DESCRIPTION: Documents the utility classes provided by Tailwind CSS for controlling the easing of CSS transitions, including linear, ease-in, ease-out, ease-in-out, and custom values. It details the class names and their corresponding CSS `transition-timing-function` properties. SOURCE: https://tailwindcss.com/docs/transition-timing-function LANGUAGE: APIDOC CODE: ``` Class | Styles --- | --- `ease-linear` | `transition-timing-function: linear;` `ease-in` | `transition-timing-function: var(--ease-in); /* cubic-bezier(0.4, 0, 1, 1) */` `ease-out` | `transition-timing-function: var(--ease-out); /* cubic-bezier(0, 0, 0.2, 1) */` `ease-in-out` | `transition-timing-function: var(--ease-in-out); /* cubic-bezier(0.4, 0, 0.2, 1) */` `ease-initial` | `transition-timing-function: initial;` `ease-(<custom-property>)` | `transition-timing-function: var(<custom-property>);` `ease-[<value>]` | `transition-timing-function: <value>;` ``` ---------------------------------------- TITLE: Accessing Tailwind CSS v4 Theme Values in JavaScript DESCRIPTION: Tailwind CSS v4 removes the `resolveConfig` function, promoting direct use of generated CSS variables. This snippet demonstrates how to animate using CSS variables with libraries like Motion and how to retrieve resolved CSS variable values in JavaScript using `getComputedStyle` from the document root. SOURCE: https://tailwindcss.com/docs/upgrade-guide LANGUAGE: JSX CODE: ``` <motion.div animate={{ backgroundColor: "var(--color-blue-500)" }} /> ``` LANGUAGE: JavaScript CODE: ``` let styles = getComputedStyle(document.documentElement);let shadow = styles.getPropertyValue("--shadow-xl"); ``` ---------------------------------------- TITLE: Tailwind CSS will-change Utility Classes DESCRIPTION: Documentation for Tailwind CSS `will-change` utility classes, which optimize elements for upcoming animations by instructing the browser to prepare. It includes classes for auto, scroll-position, contents, transform, and custom property/value changes, along with usage guidelines and performance considerations. SOURCE: https://tailwindcss.com/docs/will-change LANGUAGE: APIDOC CODE: ``` will-change Utility Classes: Class | Styles ----------------------|------------------------------------ `will-change-auto` | `will-change: auto;` `will-change-scroll` | `will-change: scroll-position;` `will-change-contents`| `will-change: contents;` `will-change-transform`| `will-change: transform;` `will-change-<custom-property>`| `will-change: var(<custom-property>);` `will-change-[<value>]`| `will-change: <value>;` Usage Examples: Optimizing with will change: Use `will-change-scroll`, `will-change-contents`, and `will-change-transform` to optimize an element expected to change. Recommendation: Apply these utilities just before an element changes and remove them shortly after using `will-change-auto`. Caution: Use `will-change` as a last resort for known performance problems, as overuse can degrade performance. Using a custom value: Use `will-change-[<value>]` for completely custom values. For CSS variables, use `will-change-(<custom-property>)` as a shorthand for `will-change-[var(<custom-property>)]`. ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: Documents the Tailwind CSS utility classes for applying 2D and 3D transformations to elements, such as rotation, scaling, skewing, translation, and controlling perspective and transform origin. SOURCE: https://tailwindcss.com/docs/backface-visibility LANGUAGE: APIDOC CODE: ``` Transforms: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate ``` ---------------------------------------- TITLE: Tailwind CSS Table, Transition, Transform, Interactivity, SVG, and Accessibility Utility Classes DESCRIPTION: This section provides a reference for Tailwind CSS utility classes related to table styling, transitions, animations, 2D/3D transforms, user interactivity, SVG properties, and accessibility features. SOURCE: https://tailwindcss.com/docs/place-content LANGUAGE: APIDOC CODE: ``` Tables: - border-collapse: Sets whether table borders are collapsed into a single border or separated. - border-spacing: Sets the distance between the borders of adjacent cells. - table-layout: Sets the algorithm used to lay out table cells, rows, and columns. - caption-side: Specifies the placement of a table caption. Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Defines whether a transition should be applied to discrete properties. - transition-duration: Sets the duration of a transition effect. - transition-timing-function: Specifies the speed curve of a transition effect. - transition-delay: Specifies when the transition effect will start. - animation: Shorthand property for animation properties. Transforms: - backface-visibility: Defines whether the back face of an element is visible when turned towards the user. - perspective: Specifies the distance between the user and the z=0 plane. - perspective-origin: Sets the origin for the perspective property. - rotate: Applies a 2D or 3D rotation transformation. - scale: Applies a 2D or 3D scaling transformation. - skew: Applies a 2D skew transformation. - transform: Applies 2D or 3D transformations to an element. - transform-origin: Sets the origin for transformations of an element. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Applies a 2D or 3D translation transformation. Interactivity: - accent-color: Sets the accent color for user-interface controls. - appearance: Controls the native appearance of UI widgets. - caret-color: Sets the color of the text insertion caret. - color-scheme: Specifies the color scheme an element is comfortable with. - cursor: Specifies the type of cursor to be displayed. - field-sizing: Controls the sizing of form fields. - pointer-events: Sets whether an element is the target of pointer events. - resize: Specifies whether an element is resizable by the user. - scroll-behavior: Specifies the scrolling behavior for a scrolling box. - scroll-margin: Sets the scroll margin of an element. - scroll-padding: Sets the scroll padding of an element. - scroll-snap-align: Specifies the snap position for a scroll container. - scroll-snap-stop: Specifies whether the scroll container must snap to a snap position. - scroll-snap-type: Specifies how strictly snap points are enforced. - touch-action: Specifies how a touch event can be handled. - user-select: Controls whether the user can select text. - will-change: Hints to browsers about what changes will be made to an element. SVG: - fill: Sets the color of the interior of an SVG shape. - stroke: Sets the color of the outline of an SVG shape. - stroke-width: Sets the width of the outline of an SVG shape. Accessibility: - forced-color-adjust: Specifies whether the user agent should adjust colors for forced colors mode. ``` ---------------------------------------- TITLE: Tailwind CSS Core Properties Reference DESCRIPTION: This section provides a comprehensive reference for various Tailwind CSS utility classes and their corresponding CSS properties, categorized by functionality. It details properties related to visual effects, image filters, table styling, animation and transitions, 2D/3D transformations, user interactivity, SVG elements, and accessibility features. SOURCE: https://tailwindcss.com/docs/installation/using-vite LANGUAGE: APIDOC CODE: ``` Effects: - box-shadow: Controls the shadow effect around an element's frame. - text-shadow: Controls the shadow effect around text. - opacity: Sets the transparency level of an element. - mix-blend-mode: Describes how an element's content should blend with its background. - background-blend-mode: Describes how an element's background images should blend with each other and with the element's background color. - mask-clip: Specifies the area which is affected by the mask. - mask-composite: Represents the compositing operation used on the current mask layer with the mask layers below it. - mask-image: Sets the image that is used as a mask layer for an element. - mask-mode: Specifies whether the mask image is treated as a luminance mask or an alpha mask. - mask-origin: Specifies the origin of the mask image. - mask-position: Sets the initial position for each background image. - mask-repeat: Sets how mask images are repeated. - mask-size: Specifies the size of the mask images. - mask-type: Specifies whether a mask element is treated as a luminance mask or an alpha mask. Filters: - filter: Applies graphical effects like blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, saturate, and sepia to an element. - blur: Applies a Gaussian blur to the input image. - brightness: Applies a linear multiplier to the input image, making it brighter or darker. - contrast: Adjusts the contrast of the input image. - drop-shadow: Applies a drop shadow to the input image. - grayscale: Converts the input image to grayscale. - hue-rotate: Applies a hue rotation to the input image. - invert: Inverts the colors of the input image. - saturate: Saturates or desaturates the input image. - sepia: Converts the input image to sepia. - backdrop-filter: Applies graphical effects to the area behind an element. - blur: Applies a Gaussian blur to the backdrop. - brightness: Adjusts the brightness of the backdrop. - contrast: Adjusts the contrast of the backdrop. - grayscale: Converts the backdrop to grayscale. - hue-rotate: Applies a hue rotation to the backdrop. - invert: Inverts the colors of the backdrop. - opacity: Sets the transparency level of the backdrop. - saturate: Saturates or desaturates the backdrop. - sepia: Converts the backdrop to sepia. Tables: - border-collapse: Sets whether table borders are collapsed into a single border or separated. - border-spacing: Sets the distance between the borders of adjacent cells. - table-layout: Sets the algorithm used to lay out table cells, rows, and columns. - caption-side: Specifies the placement of a table caption. Transitions & Animation: - transition-property: Specifies the CSS properties to which a transition effect should be applied. - transition-behavior: Defines whether a transition should be skipped when the element is first rendered. - transition-duration: Specifies how many seconds or milliseconds a transition effect takes to complete. - transition-timing-function: Specifies the speed curve of the transition effect. - transition-delay: Specifies when the transition effect will start. - animation: A shorthand property for all the animation properties. Transforms: - backface-visibility: Defines whether or not the back face of an element is visible when facing the user. - perspective: Specifies the distance between the user and the z=0 plane, to give a 3D-positioned element some perspective. - perspective-origin: Sets the origin for the perspective property. - rotate: Rotates an element around a fixed point. - scale: Scales an element up or down. - skew: Skews an element along the X and Y axes. - transform: Applies a 2D or 3D transformation to an element. - transform-origin: Sets the origin for transformations of an element. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Moves an element from its current position. Interactivity: - accent-color: Sets the accent color for user-interface controls generated by the element. - appearance: Controls the native appearance of UI widgets. - caret-color: Sets the color of the caret (text input cursor). - color-scheme: Allows an element to indicate which color schemes it is comfortable with. - cursor: Specifies the type of cursor to be displayed when pointing over an element. - field-sizing: Controls the sizing of form fields. - pointer-events: Sets under what circumstances (if any) a graphic element can be the target of pointer events. - resize: Specifies whether an element is resizable by the user. - scroll-behavior: Specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSS scroll-snap positioning. - scroll-margin: Sets the margin of the scroll snap area around the box. - scroll-padding: Sets the padding of the scroll snap area around the box. - scroll-snap-align: Specifies the snap position for an element within its scroll container. - scroll-snap-stop: Specifies whether the scroll container must snap to a snap point or can pass over it. - scroll-snap-type: Specifies how strictly snap points are enforced on the scroll container. - touch-action: Determines how a touch event (or series of events) can be handled by the browser. - user-select: Controls whether the user can select text. - will-change: Hints to browsers how an element is expected to change. SVG: - fill: Sets the color of the interior of an SVG shape. - stroke: Sets the color of the outline of an SVG shape. - stroke-width: Sets the width of the outline of an SVG shape. Accessibility: - forced-color-adjust: Controls whether the user agent can make adjustments to colors to improve readability in forced color modes. ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: API documentation for Tailwind CSS utilities that apply 2D and 3D transformations to elements, such as rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/text-decoration-color LANGUAGE: APIDOC CODE: ``` Transforms Properties: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate ``` ---------------------------------------- TITLE: TailwindCSS Transform Utilities DESCRIPTION: Documentation for TailwindCSS utilities that apply 2D and 3D transformations to elements, including rotation, scaling, skewing, translation, and perspective effects. SOURCE: https://tailwindcss.com/docs/color LANGUAGE: APIDOC CODE: ``` backface-visibility perspective perspective-origin rotate scale skew transform transform-origin transform-style translate ``` ---------------------------------------- TITLE: Tailwind CSS Utility Categories and Properties DESCRIPTION: This section lists various categories of Tailwind CSS utilities and the specific CSS properties they control. It serves as a quick reference for available styling options within each domain, such as visual effects, filters, table layouts, animations, transformations, user interaction, SVG styling, and accessibility features. SOURCE: https://tailwindcss.com/docs/order LANGUAGE: APIDOC CODE: ``` Effects: - box-shadow - text-shadow - opacity - mix-blend-mode - background-blend-mode - mask-clip - mask-composite - mask-image - mask-mode - mask-origin - mask-position - mask-repeat - mask-size - mask-type Filters: - filter - blur - brightness - contrast - drop-shadow - grayscale - hue-rotate - invert - saturate - sepia - backdrop-filter - blur - brightness - contrast - grayscale - hue-rotate - invert - opacity - saturate - sepia Tables: - border-collapse - border-spacing - table-layout - caption-side Transitions & Animation: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation Transforms: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate Interactivity: - accent-color - appearance - caret-color - color-scheme - cursor - field-sizing - pointer-events - resize - scroll-behavior - scroll-margin - scroll-padding - scroll-snap-align - scroll-snap-stop - scroll-snap-type - touch-action - user-select - will-change SVG: - fill - stroke - stroke-width Accessibility: - forced-color-adjust ``` ---------------------------------------- TITLE: Define and Use Custom Transition Timing Function in Tailwind CSS Theme DESCRIPTION: This example shows how to define a custom `transition-timing-function` variable within the `@theme` directive in Tailwind CSS, extending the default set of easing functions. Subsequently, it demonstrates how to apply this newly defined custom utility class, `ease-in-expo`, to an HTML element. SOURCE: https://tailwindcss.com/docs/transition-timing-function LANGUAGE: css CODE: ``` @theme { --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035); } ``` LANGUAGE: html CODE: ``` <button class="ease-in-expo"> <!-- ... --></button> ``` ---------------------------------------- TITLE: TailwindCSS Transform Utilities DESCRIPTION: Documentation for TailwindCSS utilities that apply 2D and 3D transformations like rotation, scaling, skewing, and translation to elements. SOURCE: https://tailwindcss.com/docs/box-shadow LANGUAGE: APIDOC CODE: ``` backface-visibility perspective perspective-origin rotate scale skew transform transform-origin transform-style translate ``` ---------------------------------------- TITLE: Apply Responsive Transition Timing Function in Tailwind CSS DESCRIPTION: This snippet demonstrates how to apply a `transition-timing-function` utility responsively in Tailwind CSS. The `ease-out` class is applied by default, and `md:ease-in` overrides it for medium screen sizes and above, changing the easing from `ease-out` to `ease-in`. SOURCE: https://tailwindcss.com/docs/transition-timing-function LANGUAGE: html CODE: ``` <button class="ease-out md:ease-in ..."> <!-- ... --></button> ``` ---------------------------------------- TITLE: TailwindCSS Transform Utilities DESCRIPTION: Documents TailwindCSS utilities for applying 2D and 3D transformations to elements. These utilities include properties for controlling backface visibility, perspective, rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/background-image LANGUAGE: APIDOC CODE: ``` Transform Utilities: - backface-visibility: Specifies whether the back face of an element is visible when turned towards the user. - perspective: Defines how a 3D element is viewed. - perspective-origin: Sets the origin for the perspective property. - rotate: Rotates an element around a fixed point. - scale: Scales an element up or down. - skew: Skews an element along the X and Y axes. - transform: Applies a 2D or 3D transformation to an element. - transform-origin: Sets the origin for transformations. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Moves an element from its current position. ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: This section documents Tailwind CSS utility classes for applying 2D and 3D transformations to elements, such as rotation, scaling, skewing, and translation. It also includes properties for perspective and transform origin. SOURCE: https://tailwindcss.com/docs/float LANGUAGE: APIDOC CODE: ``` Tailwind CSS Transform Utilities: - backface-visibility: Utilities for controlling whether the back face of an element is visible when rotated. - perspective: Utilities for controlling the distance between the user and the z=0 plane. - perspective-origin: Utilities for controlling the origin of the perspective property. - rotate: Utilities for rotating elements. - scale: Utilities for scaling elements. - skew: Utilities for skewing elements. - transform: Utilities for applying 2D or 3D transformations to an element. - transform-origin: Utilities for controlling the origin of an element's transformation. - transform-style: Utilities for controlling how nested elements are rendered in 3D space. - translate: Utilities for translating elements. ``` ---------------------------------------- TITLE: Tailwind CSS Utility Classes Reference DESCRIPTION: A comprehensive reference of Tailwind CSS utility classes categorized by their functional areas. These classes provide direct control over various CSS properties for rapid UI development, covering visual effects, filtering, table styling, animation, transformations, user interaction, SVG properties, and accessibility features. SOURCE: https://tailwindcss.com/docs/installation/framework-guides/laravel/vite LANGUAGE: APIDOC CODE: ``` Effects: - box-shadow - text-shadow - opacity - mix-blend-mode - background-blend-mode - mask-clip - mask-composite - mask-image - mask-mode - mask-origin - mask-position - mask-repeat - mask-size - mask-type Filters: - filter - blur - brightness - contrast - drop-shadow - grayscale - hue-rotate - invert - saturate - sepia - backdrop-filter - blur - brightness - contrast - grayscale - hue-rotate - invert - opacity - saturate - sepia Tables: - border-collapse - border-spacing - table-layout - caption-side Transitions & Animation: - transition-property - transition-behavior - transition-duration - transition-timing-function - transition-delay - animation Transforms: - backface-visibility - perspective - perspective-origin - rotate - scale - skew - transform - transform-origin - transform-style - translate Interactivity: - accent-color - appearance - caret-color - color-scheme - cursor - field-sizing - pointer-events - resize - scroll-behavior - scroll-margin - scroll-padding - scroll-snap-align - scroll-snap-stop - scroll-snap-type - touch-action - user-select - will-change SVG: - fill - stroke - stroke-width Accessibility: - forced-color-adjust ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: Documents utility classes for applying 2D and 3D transformations to elements, including rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/border-width LANGUAGE: APIDOC CODE: ``` Transforms: backface-visibility: Utility for determining whether the back face of an element is visible when facing the user. perspective: Utility for setting the distance between the user and the z=0 plane, to give a 3D-positioned element some perspective. perspective-origin: Utility for setting the origin for the perspective property. rotate: Utility for applying a rotation transformation. scale: Utility for applying a scaling transformation. skew: Utility for applying a skew transformation. transform: Utility for applying 2D or 3D transformations to an element. transform-origin: Utility for setting the origin of an element's transformation. transform-style: Utility for setting how nested elements are rendered in 3D space. translate: Utility for applying a translation transformation. ``` ---------------------------------------- TITLE: Combine Multiple Gradient Masks in HTML DESCRIPTION: Shows how to combine various gradient mask utilities, such as `mask-b-from-<value>`, `mask-radial-[<value>]`, and `mask-radial-from-<value>`, on a single HTML element. This technique allows for the creation of more complex and layered mask effects, leveraging Tailwind's default `mask-composite` property set to `intersect`. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: HTML CODE: ``` <div class="mask-b-from-50% mask-radial-[50%_90%] mask-radial-from-80% bg-[url(/img/mountains.jpg)] ..."></div><div class="mask-r-from-80% mask-b-from-80% mask-radial-from-70% mask-radial-to-85% bg-[url(/img/mountains.jpg)] ..."></div> ``` ---------------------------------------- TITLE: Apply Tailwind CSS transform-style for 3D Transformations DESCRIPTION: Demonstrates the application of `transform-flat` and `transform-3d` utility classes to parent elements to control the 3D positioning of their children. This example shows how child elements behave differently in 2D (flat) versus 3D (preserve-3d) transformation contexts. SOURCE: https://tailwindcss.com/docs/transform-style LANGUAGE: HTML CODE: ``` <div class="size-20 transform-flat ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 ...">6</div></div><div class="size-20 transform-3d ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 ...">6</div></div> ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: Provides Tailwind CSS utility classes for applying 2D and 3D transformations to elements, such as rotations, scaling, skewing, and translations. It also includes utilities for controlling perspective and transform origins. SOURCE: https://tailwindcss.com/docs/text-decoration-style LANGUAGE: APIDOC CODE: ``` backface-visibility: backface-visibility perspective: perspective perspective-origin: perspective-origin rotate: rotate(...) scale: scale(...) skew: skew(...) transform: transform transform-origin: transform-origin transform-style: transform-style translate: translate(...) ``` ---------------------------------------- TITLE: HTML Example for Floating Elements with Tailwind CSS DESCRIPTION: An HTML snippet demonstrating the use of the `float-right` utility class from Tailwind CSS to position an image to the right of its container, allowing text to wrap around it. SOURCE: https://tailwindcss.com/docs/float LANGUAGE: HTML CODE: ``` <article> <img class="float-right ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article> ``` ---------------------------------------- TITLE: Tailwind CSS Transforms Utilities Reference DESCRIPTION: Documents the utility classes available in Tailwind CSS for applying 2D and 3D transformations like rotation, scaling, skewing, and translation, along with perspective and transform origin. SOURCE: https://tailwindcss.com/docs/outline-width LANGUAGE: APIDOC CODE: ``` ### Transforms * backface-visibility * perspective * perspective-origin * rotate * scale * skew * transform * transform-origin * transform-style * translate ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utility Classes DESCRIPTION: Documents Tailwind CSS utility classes for applying 2D and 3D transformations to elements, including rotation, scaling, skewing, and translation. It also covers properties related to 3D perspective and transform origins. SOURCE: https://tailwindcss.com/docs/user-select LANGUAGE: APIDOC CODE: ``` Transforms Utilities: backface-visibility: Defines whether the back face of an element is visible when turned towards the user. perspective: Specifies the distance between the user and the z=0 plane, for 3D transformed elements. perspective-origin: Sets the origin for the perspective property. rotate: Rotates an element around its origin. scale: Scales an element up or down. skew: Skews an element along the X and Y axes. transform: Applies a 2D or 3D transformation to an element. transform-origin: Sets the origin for transformations of an element. transform-style: Specifies how nested elements are rendered in 3D space. translate: Moves an element along the X and Y axes. ``` ---------------------------------------- TITLE: Tailwind CSS box-decoration-break Utility Classes DESCRIPTION: Documentation for the `box-decoration-break` utility, which controls how element fragments are rendered across multiple lines, columns, or pages. It defines two primary classes: `box-decoration-clone` and `box-decoration-slice`. SOURCE: https://tailwindcss.com/docs/box-decoration-break LANGUAGE: APIDOC CODE: ``` box-decoration-break: box-decoration-clone: `box-decoration-break: clone` - Renders properties as if the element were one continuous fragment. box-decoration-slice: `box-decoration-break: slice` - Renders properties as distinct blocks for each fragment. ``` ---------------------------------------- TITLE: Implement Conic Gradient Masks with Tailwind CSS DESCRIPTION: Illustrates the application of Tailwind CSS conic mask utilities such as `mask-conic-from-<value>` and `mask-conic-to-<value>` to create a conic gradient effect. This example shows a progress indicator-like design using nested `div` elements with different border and mask properties. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: HTML CODE: ``` <div class="flex items-center gap-5 rounded-xl bg-white p-4 shadow-lg ring-1 ring-black/5 dark:bg-gray-800"> <div class="grid grid-cols-1 grid-rows-1"> <div class="border-4 border-gray-100 dark:border-gray-700 ..."></div> <div class="border-4 border-amber-500 mask-conic-from-75% mask-conic-to-75% dark:border-amber-400 ..."></div> </div> <div class="w-0 flex-1 text-sm text-gray-950 dark:text-white"> <p class="font-medium">Storage used: 75%</p> <p class="mt-1 text-gray-500 dark:text-gray-400"><span class="font-medium">0.48 GB</span> out of 2 GB remaining</p> </div></div> ``` ---------------------------------------- TITLE: Apply Logical Floats (Start/End) with Tailwind CSS DESCRIPTION: This HTML snippet illustrates the use of `float-start` for logical floating, which adapts to text direction (left-to-right or right-to-left). It shows how to float an image to the start of its container, demonstrating its behavior in both LTR and RTL contexts. SOURCE: https://tailwindcss.com/docs/float LANGUAGE: HTML CODE: ``` <article> <img class="float-start ..." src="/img/mountains.jpg" /> <p>Maybe we can live without libraries, people like you and me. ...</p></article> ``` LANGUAGE: HTML CODE: ``` <article dir="rtl"> <img class="float-start ..." src="/img/mountains.jpg" /> <p>... ربما يمكننا العيش بدون مكتبات، أشخاص مثلي ومثلك. ربما. بالتأكيد</p></article> ``` ---------------------------------------- TITLE: HTML Example for Tailwind CSS `backface-visibility` DESCRIPTION: Demonstrates the usage of `backface-hidden` and `backface-visible` utility classes in an HTML structure, typically for 3D transformations like rotating a cube, showing how the backface visibility affects rendering. SOURCE: https://tailwindcss.com/docs/backface-visibility LANGUAGE: HTML CODE: ``` <div class="size-20 ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 backface-hidden ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 backface-hidden ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 backface-hidden ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 backface-hidden ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 backface-hidden ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 backface-hidden ...">6</div></div><div class="size-20 ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 backface-visible ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 backface-visible ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 backface-visible ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 backface-visible ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 backface-visible ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 backface-visible ...">6</div></div> ``` ---------------------------------------- TITLE: Apply Conic Gradients with Tailwind CSS DESCRIPTION: Demonstrates how to implement conic gradients on HTML elements using Tailwind CSS `bg-conic` and `bg-conic-<angle>` utilities, combined with color stop definitions and their positions. SOURCE: https://tailwindcss.com/docs/background-image LANGUAGE: HTML CODE: ``` <div class="size-24 rounded-full bg-conic from-blue-600 to-sky-400 to-50%"></div><div class="size-24 rounded-full bg-conic-180 from-indigo-600 via-indigo-50 to-indigo-600"></div><div class="size-24 rounded-full bg-conic/decreasing from-violet-700 via-lime-300 to-violet-700"></div> ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: This section details Tailwind CSS utility classes for applying 2D and 3D transformations to elements. It includes utilities for controlling backface visibility, perspective, rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/line-height LANGUAGE: APIDOC CODE: ``` Transforms: - backface-visibility: Utilities for controlling whether the back face of an element is visible when rotated. - perspective: Utilities for controlling the distance between the user and the z=0 plane. - perspective-origin: Utilities for controlling the origin of the perspective property. - rotate: Utilities for rotating elements. - scale: Utilities for scaling elements. - skew: Utilities for skewing elements. - transform: Utilities for applying 2D or 3D transformations to an element. - transform-origin: Utilities for controlling the origin of an element's transformations. - transform-style: Utilities for controlling how nested elements are rendered in 3D space. - translate: Utilities for translating elements. ``` ---------------------------------------- TITLE: Tailwind CSS Mask Y-Axis Gradient Utilities DESCRIPTION: Documents Tailwind CSS utility classes for creating linear gradient masks along the Y-axis (vertical), combining `to top` and `to bottom` gradients with `mask-composite: intersect`. These classes allow masks to originate or terminate from both top and bottom edges simultaneously, customizable with various value types. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: APIDOC CODE: ``` mask-y-from-<value> - Applies a linear gradient mask starting from both top and bottom edges along the Y-axis. - Syntax: - `mask-y-from-<number>`: `mask-image: linear-gradient(to top, black calc(var(--spacing * <number>)), transparent var(--tw-mask-top-to)), linear-gradient(to bottom, black calc(var(--spacing * <number>)), transparent var(--tw-mask-bottom-to)); mask-composite: intersect;` - `mask-y-from-<percentage>`: `mask-image: linear-gradient(to top, black <percentage>, transparent var(--tw-mask-top-to)), linear-gradient(to bottom, black <percentage>, transparent var(--tw-mask-bottom-to)); mask-composite: intersect;` - `mask-y-from-<color>`: `mask-image: linear-gradient(to top, <color> var(--tw-mask-top-from), transparent var(--tw-mask-top-to)), linear-gradient(to bottom, <color> var(--tw-mask-bottom-from), transparent var(--tw-mask-bottom-to)); mask-composite: intersect;` - `mask-y-from-(<custom-property>)`: `mask-image: linear-gradient(to top, black var(<custom-property>), transparent var(--tw-mask-top-to)), linear-gradient(to bottom, black var(<custom-property>), transparent var(--tw-mask-bottom-to)); mask-composite: intersect;` - `mask-y-from-[<value>]`: `mask-image: linear-gradient(to top, black <value>, transparent var(--tw-mask-top-to)), linear-gradient(to bottom, black <value>, transparent var(--tw-mask-bottom-to)); mask-composite: intersect;` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, color, custom CSS property, or an arbitrary value. mask-y-to-<value> - Applies a linear gradient mask terminating towards both top and bottom edges along the Y-axis. - Syntax: - `mask-y-to-<number>`: `mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent calc(var(--spacing * <number>))), linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent calc(var(--spacing * <number>))); mask-composite: intersect;` - `mask-y-to-<percentage>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-top-from), transparent <percentage>), linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent <percentage>); mask-composite: intersect;` - `mask-y-to-<color>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-top-from), <color> var(--tw-mask-top-to)), linear-gradient(to bottom, black var(--tw-mask-bottom-from), <color> var(--tw-mask-bottom-to)); mask-composite: intersect;` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, or color. ``` ---------------------------------------- TITLE: Generating Multiple Tailwind CSS Classes with Ranges using `@source inline()` DESCRIPTION: This example illustrates how to leverage brace expansion within the `@source inline()` directive to efficiently generate a series of related utility classes, including their variants. It's particularly useful for creating a range of color shades or sizes without listing each one individually. SOURCE: https://tailwindcss.com/docs/detecting-classes-in-source-files LANGUAGE: CSS CODE: ``` @import "tailwindcss"; @source inline("{hover:,}bg-red-{50,{100..900..100},950}"); ``` LANGUAGE: CSS CODE: ``` .bg-red-50 { background-color: var(--color-red-50); } .bg-red-100 { background-color: var(--color-red-100); } .bg-red-200 { background-color: var(--color-red-200); } /* ... */ .bg-red-800 { background-color: var(--color-red-800); } .bg-red-900 { background-color: var(--color-red-900); } .bg-red-950 { background-color: var(--color-red-950); } @media (hover: hover) { .hover\:bg-red-50:hover { background-color: var(--color-red-50); } /* ... */ .hover\:bg-red-950:hover { background-color: var(--color-red-950); } } ``` ---------------------------------------- TITLE: Tailwind CSS Vertical Mask Utilities (`mask-y-to`) DESCRIPTION: These utilities apply a vertical linear gradient mask to an element, allowing control over the mask's endpoint using custom properties or specific arbitrary values. They combine two linear gradients (to top and to bottom) with `mask-composite: intersect` for a combined masking effect. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: CSS CODE: ``` mask-y-to-(<custom-property>): mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent var(<custom-property>)),linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent var(<custom-property>)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-y-to-[<value>]: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent <value>),linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent <value>); mask-composite: intersect; ``` ---------------------------------------- TITLE: Making Images Inline with Tailwind CSS Utility DESCRIPTION: While images are block-level by default in Tailwind CSS, you can easily override this behavior. This HTML snippet demonstrates how to use the `inline` utility class to change an image's display property to `inline` when needed. SOURCE: https://tailwindcss.com/docs/preflight LANGUAGE: HTML CODE: ``` <img class="inline" src="..." alt="..." /> ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: Covers Tailwind CSS utility classes for applying 2D and 3D transformations to elements, such as rotation, scaling, skewing, and translation, along with properties controlling perspective and transform origin. SOURCE: https://tailwindcss.com/docs/filter-drop-shadow LANGUAGE: APIDOC CODE: ``` backface-visibility: Determines whether the back face of an element is visible when turned towards the user. perspective: Defines how far the user is from the z=0 plane, giving a 3D-positioned element some perspective. perspective-origin: Sets the origin for the perspective property. rotate: Rotates an element around a fixed point. scale: Scales an element up or down. skew: Skews an element along the X and Y axes. transform: Applies 2D or 3D transformations to an element. transform-origin: Sets the origin for transformations of an element. transform-style: Specifies how nested elements are rendered in 3D space. translate: Moves an element from its current position. ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: This section documents CSS properties for applying 2D and 3D transformations to elements, such as rotation, scaling, skewing, and translation, along with perspective and origin controls. SOURCE: https://tailwindcss.com/docs/text-color LANGUAGE: APIDOC CODE: ``` CSS Transform Properties: backface-visibility: Defines whether or not the back face of an element is visible when facing the user. perspective: Defines how far the object is from the user. perspective-origin: Defines the origin (the x- and y-axis) of the perspective property. rotate: Rotates an element around a fixed point. scale: Scales an element up or down. skew: Skews an element along the X and Y axes. transform: Applies a 2D or 3D transformation to an element. transform-origin: Sets the origin for transformations of an element. transform-style: Specifies how nested elements are rendered in 3D space. translate: Moves an element from its current position. ``` ---------------------------------------- TITLE: Apply Tailwind CSS Translate Utilities in HTML DESCRIPTION: Demonstrates how to apply Tailwind CSS `translate` utility classes to HTML `<img>` elements to shift their position on the page. Examples include negative and positive translations using the spacing scale. SOURCE: https://tailwindcss.com/docs/translate LANGUAGE: HTML CODE: ``` <img class="-translate-6 ..." src="/img/mountains.jpg" /><img class="translate-2 ..." src="/img/mountains.jpg" /><img class="translate-8 ..." src="/img/mountains.jpg" /> ``` ---------------------------------------- TITLE: TailwindCSS Effects Utilities DESCRIPTION: Documentation for TailwindCSS utilities related to visual effects like shadows, opacity, and blend modes, allowing control over how elements appear and interact visually. SOURCE: https://tailwindcss.com/docs/box-shadow LANGUAGE: APIDOC CODE: ``` box-shadow text-shadow opacity mix-blend-mode background-blend-mode mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: API documentation for Tailwind CSS utility classes that apply 2D or 3D transformations to an element. These utilities control rotation, scaling, skewing, translation, and perspective effects. SOURCE: https://tailwindcss.com/docs/flex-basis LANGUAGE: APIDOC CODE: ``` backface-visibility: Defines whether or not the back face of an element is visible when facing the user. perspective: Defines how far the user is from the z-plane. perspective-origin: Sets the origin for the perspective property. rotate: Rotates an element. scale: Scales an element. skew: Skews an element. transform: Applies a 2D or 3D transformation to an element. transform-origin: Sets the origin for transformations. transform-style: Specifies how nested elements are rendered in 3D space. translate: Moves an element along the X, Y, or Z axis. ``` ---------------------------------------- TITLE: Tailwind CSS Transform Utilities DESCRIPTION: Documentation for Tailwind CSS utilities that apply 2D or 3D transformations to an element, such as rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/padding LANGUAGE: APIDOC CODE: ``` Transforms: - backface-visibility: Defines whether the back face of an element is visible when turned towards the user. - perspective: Defines how far the object is from the user. - perspective-origin: Defines the origin of the perspective for 3D transforms. - rotate: Rotates an element around a fixed point. - scale: Scales an element up or down. - skew: Skews an element along the X and Y axes. - transform: Applies a 2D or 3D transformation to an element. - transform-origin: Sets the origin for transformations of an element. - transform-style: Specifies how nested elements are rendered in 3D space. - translate: Moves an element from its current position. ``` ---------------------------------------- TITLE: CSS Equivalent for Tailwind Complex Selector DESCRIPTION: Illustrates the simplified CSS output corresponding to a complex Tailwind class, showing how media queries, pseudo-classes, and attribute selectors are combined. SOURCE: https://tailwindcss.com/docs/styling-with-utility-classes LANGUAGE: CSS CODE: ``` @media (prefers-color-scheme: dark) and (width >= 64rem) { button[data-current]:hover { background-color: var(--color-indigo-600); }} ``` ---------------------------------------- TITLE: Tailwind CSS Transforms Utility Classes DESCRIPTION: Reference for Tailwind CSS utility classes for applying CSS transforms like rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/background-size LANGUAGE: APIDOC CODE: ``` backface-visibility: Utilities for controlling whether the back face of an element is visible when rotated. perspective: Utilities for controlling the perspective property. perspective-origin: Utilities for controlling the perspective origin property. rotate: Utilities for rotating elements. scale: Utilities for scaling elements. skew: Utilities for skewing elements. transform: General utility for applying transforms. transform-origin: Utilities for controlling the origin of an element's transform. transform-style: Utilities for controlling how nested elements are rendered in 3D space. translate: Utilities for translating elements. ``` ---------------------------------------- TITLE: TailwindCSS Transform Utilities DESCRIPTION: This section lists TailwindCSS utilities for applying 2D and 3D transformations to elements, such as rotation, scaling, skewing, translation, and perspective controls. These utilities enable complex visual manipulations and dynamic element positioning. SOURCE: https://tailwindcss.com/docs/border-color LANGUAGE: APIDOC CODE: ``` backface-visibility perspective perspective-origin rotate scale skew transform transform-origin transform-style translate ``` ---------------------------------------- TITLE: CSS Transform Properties DESCRIPTION: Documentation for CSS properties that apply 2D or 3D transformations to an element, such as rotation, scaling, skewing, and translation. SOURCE: https://tailwindcss.com/docs/margin LANGUAGE: APIDOC CODE: ``` backface-visibility: Defines whether or not the back face of an element is visible when facing the user. perspective: Defines how far the user is from the z=0 plane when viewing a 3D transformed element. perspective-origin: Sets the origin for the perspective property. rotate: Rotates an element around a fixed point. scale: Scales an element up or down. skew: Skews an element along the X and Y axes. transform: Applies a 2D or 3D transformation to an element. transform-origin: Sets the origin for transformations of an element. transform-style: Specifies how nested elements are rendered in 3D space. translate: Moves an element from its current position. ``` ---------------------------------------- TITLE: Tailwind CSS Mask Left Gradient Utilities DESCRIPTION: Provides Tailwind CSS utility classes for creating linear gradient masks that originate or terminate from the left edge of an element. These classes set the `mask-image` property using `linear-gradient(to left, ...)`, supporting various value types for customization. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: APIDOC CODE: ``` mask-l-from-<value> - Applies a linear gradient mask starting from the left. - Syntax: - `mask-l-from-<number>`: `mask-image: linear-gradient(to left, black calc(var(--spacing * <number>)), transparent var(--tw-mask-left-to));` - `mask-l-from-<percentage>`: `mask-image: linear-gradient(to left, black <percentage>, transparent var(--tw-mask-left-to));` - `mask-l-from-<color>`: `mask-image: linear-gradient(to left, <color> var(--tw-mask-left-from), transparent var(--tw-mask-left-to));` - `mask-l-from-(<custom-property>)`: `mask-image: linear-gradient(to left, black var(<custom-property>), transparent var(--tw-mask-left-to));` - `mask-l-from-[<value>]`: `mask-image: linear-gradient(to left, black <value>, transparent var(--tw-mask-left-to));` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, color, custom CSS property, or an arbitrary value. mask-l-to-<value> - Applies a linear gradient mask terminating towards the left edge. - Syntax: - `mask-l-to-<number>`: `mask-image: linear-gradient(to left, black var(--tw-mask-left-from), transparent calc(var(--spacing * <number>)));` - `mask-l-to-<percentage>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-left-from), transparent <percentage>);` - `mask-l-to-<color>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-left-from), <color> var(--tw-mask-left-to));` - `mask-l-to-(<custom-property>)`: `mask-image: linear-gradient(to left, black var(--tw-mask-left-from), transparent var(<custom-property>));` - `mask-l-to-[<value>]`: `mask-image: linear-gradient(to left, black var(--tw-mask-left-from), transparent <value>);` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, color, custom CSS property, or an arbitrary value. ``` ---------------------------------------- TITLE: Tailwind CSS Horizontal Mask Utilities (`mask-x-from`, `mask-x-to`) DESCRIPTION: These utilities apply horizontal linear gradient masks, controlling the mask's start (`from`) or end (`to`) point. They support numbers (multiplied by spacing), percentages, colors, custom properties, and arbitrary values, using `mask-composite: intersect` for effective masking. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: CSS CODE: ``` mask-x-from-<number>: mask-image: linear-gradient(to right, black calc(var(--spacing * <number>)), transparent var(--tw-mask-right-to)), linear-gradient(to left, black calc(var(--spacing * <number>)), transparent var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-from-<percentage>: mask-image: linear-gradient(to right, black <percentage>, transparent var(--tw-mask-right-to)), linear-gradient(to left, black <percentage>, transparent var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-from-<color>: mask-image: linear-gradient(to right, <color> var(--tw-mask-right-from), transparent var(--tw-mask-right-to)), linear-gradient(to left, <color> var(--tw-mask-left-from), transparent var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-from-(<custom-property>): mask-image: linear-gradient(to right, black var(<custom-property>), transparent var(--tw-mask-right-to)), linear-gradient(to left, black var(<custom-property>), transparent var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-from-[<value>]: mask-image: linear-gradient(to right, black <value>, transparent var(--tw-mask-right-to)), linear-gradient(to left, black <value>, transparent var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-to-<number>: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent calc(var(--spacing * <number>))), linear-gradient(to left, black var(--tw-mask-left-from), transparent calc(var(--spacing * <number>))); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-to-<percentage>: mask-image: linear-gradient(to left, black var(--tw-mask-right-from), transparent <percentage>), linear-gradient(to left, black var(--tw-mask-left-from), transparent <percentage>); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-to-<color>: mask-image: linear-gradient(to left, black var(--tw-mask-right-from), <color> var(--tw-mask-right-to)), linear-gradient(to left, black var(--tw-mask-left-from), <color> var(--tw-mask-left-to)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-to-(<custom-property>): mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent var(<custom-property>)),linear-gradient(to left, black var(--tw-mask-left-from), transparent var(<custom-property>)); mask-composite: intersect; ``` LANGUAGE: CSS CODE: ``` mask-x-to-[<value>]: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent <value>),linear-gradient(to left, black var(--tw-mask-left-from), transparent <value>); mask-composite: intersect; ``` ---------------------------------------- TITLE: Apply Basic Sepia Filters to Images in HTML DESCRIPTION: Demonstrates how to apply different levels of sepia filters (none, 50%, 100%) to images using Tailwind CSS utility classes directly in HTML. This provides a quick visual comparison of the sepia effect. SOURCE: https://tailwindcss.com/docs/filter-sepia LANGUAGE: html CODE: ``` <img class="sepia-0" src="/img/mountains.jpg" /><img class="sepia-50" src="/img/mountains.jpg" /><img class="sepia" src="/img/mountains.jpg" /> ``` ---------------------------------------- TITLE: Applying Tailwind CSS Perspective Utilities DESCRIPTION: This example demonstrates how to use `perspective-dramatic` and `perspective-normal` utilities to control the perceived distance of elements along the Z-axis, affecting 3D transformations. It shows how different perspective values change the visual depth. SOURCE: https://tailwindcss.com/docs/perspective LANGUAGE: HTML CODE: ``` <div class="size-20 perspective-dramatic ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 ...">6</div> </div> <div class="size-20 perspective-normal ..."> <div class="translate-z-12 rotate-x-0 bg-sky-300/75 ...">1</div> <div class="-translate-z-12 rotate-y-18 bg-sky-300/75 ...">2</div> <div class="translate-x-12 rotate-y-90 bg-sky-300/75 ...">3</div> <div class="-translate-x-12 -rotate-y-90 bg-sky-300/75 ...">4</div> <div class="-translate-y-12 rotate-x-90 bg-sky-300/75 ...">5</div> <div class="translate-y-12 -rotate-x-90 bg-sky-300/75 ...">6</div> </div> ``` ---------------------------------------- TITLE: Tailwind CSS Mask Bottom Gradient Utilities DESCRIPTION: Defines Tailwind CSS utility classes for creating linear gradient masks that originate or terminate from the bottom edge of an element. These classes control the `mask-image` property with `linear-gradient(to bottom, ...)`, allowing customization with numbers, percentages, colors, custom properties, or arbitrary values. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: APIDOC CODE: ``` mask-b-from-<value> - Applies a linear gradient mask starting from the bottom. - Syntax: - `mask-b-from-<number>`: `mask-image: linear-gradient(to bottom, black calc(var(--spacing * <number>)), transparent var(--tw-mask-bottom-to));` - `mask-b-from-<percentage>`: `mask-image: linear-gradient(to bottom, black <percentage>, transparent var(--tw-mask-bottom-to));` - `mask-b-from-<color>`: `mask-image: linear-gradient(to bottom, <color> var(--tw-mask-bottom-from), transparent var(--tw-mask-bottom-to));` - `mask-b-from-(<custom-property>)`: `mask-image: linear-gradient(to bottom, black var(<custom-property>), transparent var(--tw-mask-bottom-to));` - `mask-b-from-[<value>]`: `mask-image: linear-gradient(to bottom, black <value>, transparent var(--tw-mask-bottom-to));` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, color, custom CSS property, or an arbitrary value. mask-b-to-<value> - Applies a linear gradient mask terminating towards the bottom edge. - Syntax: - `mask-b-to-<number>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent calc(var(--spacing * <number>)));` - `mask-b-to-<percentage>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent <percentage>);` - `mask-b-to-<color>`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-bottom-from), <color> var(--tw-mask-bottom-to));` - `mask-b-to-(<custom-property>)`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent var(<custom-property>));` - `mask-b-to-[<value>]`: `mask-image: linear-gradient(to bottom, black var(--tw-mask-bottom-from), transparent <value>);` - Parameters: - `<value>`: Can be a number (multiplied by spacing variable), percentage, color, custom CSS property, or an arbitrary value. ``` ---------------------------------------- TITLE: Tailwind CSS Effects Utilities DESCRIPTION: Lists Tailwind CSS utility classes for applying various visual effects such as box shadows, text shadows, opacity, and blend modes. These classes directly map to their corresponding CSS properties. SOURCE: https://tailwindcss.com/docs/text-decoration-style LANGUAGE: APIDOC CODE: ``` box-shadow: box-shadow text-shadow: text-shadow opacity: opacity mix-blend-mode: mix-blend-mode background-blend-mode: background-blend-mode mask-clip: mask-clip mask-composite: mask-composite mask-image: mask-image mask-mode: mask-mode mask-origin: mask-origin mask-position: mask-position mask-repeat: mask-repeat mask-size: mask-size mask-type: mask-type ``` ---------------------------------------- TITLE: Tailwind CSS mask-image Utility Classes DESCRIPTION: Provides a comprehensive list of Tailwind CSS utility classes for controlling the `mask-image` CSS property. These utilities allow for setting custom mask images, applying linear gradients with specified angles, and creating directional gradients (top, right, bottom, left) with custom start/end points, percentages, colors, or custom CSS properties. SOURCE: https://tailwindcss.com/docs/mask-image LANGUAGE: APIDOC CODE: ``` mask-[<value>] - Description: Sets a custom mask image value. - CSS: mask-image: <value>; mask-(<custom-property>) - Description: Sets the mask image using a CSS custom property. - CSS: mask-image: var(<custom-property>); mask-none - Description: Removes any mask image. - CSS: mask-image: none; mask-linear-<number> - Description: Applies a linear gradient mask with a specified angle. - Parameters: - <number>: Angle in degrees. - CSS: mask-image: linear-gradient(<number>deg, black var(--tw-mask-linear-from)), transparent var(--tw-mask-linear-to)); -mask-linear-<number> - Description: Applies a linear gradient mask with a negative specified angle. - Parameters: - <number>: Angle in degrees. - CSS: mask-image: linear-gradient(calc(<number>deg * -1), black var(--tw-mask-linear-from)), transparent var(--tw-mask-linear-to)); mask-linear-from-<number> - Description: Sets the start point of a linear gradient mask from a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black calc(var(--spacing * <number>)), transparent var(--tw-mask-linear-to)); mask-linear-from-<percentage> - Description: Sets the start point of a linear gradient mask from a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black <percentage>, transparent var(--tw-mask-linear-to)); mask-linear-from-<color> - Description: Sets the start color of a linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), <color> var(--tw-mask-linear-from), transparent var(--tw-mask-linear-to)); mask-linear-from-(<custom-property>) - Description: Sets the start point of a linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black <custom-property>, transparent var(--tw-mask-linear-to)); mask-linear-from-[<value>] - Description: Sets the start point of a linear gradient mask from an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black <value>, transparent var(--tw-mask-linear-to)); mask-linear-to-<number> - Description: Sets the end point of a linear gradient mask to a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black var(--tw-mask-linear-from), transparent calc(var(--spacing * <number>))); mask-linear-to-<percentage> - Description: Sets the end point of a linear gradient mask to a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black var(--tw-mask-linear-from), transparent <percentage>); mask-linear-to-<color> - Description: Sets the end color of a linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black var(--tw-mask-linear-from), <color> var(--tw-mask-linear-to)); mask-linear-to-(<custom-property>) - Description: Sets the end point of a linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black var(--tw-mask-linear-from), transparent var(<custom-property>)); mask-linear-to-[<value>] - Description: Sets the end point of a linear gradient mask to an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(var(--tw-mask-linear-position), black var(--tw-mask-linear-from), transparent <value>); mask-t-from-<number> - Description: Sets the start point of a top-directional linear gradient mask from a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(to top, black calc(var(--spacing * <number>)), transparent var(--tw-mask-top-to)); mask-t-from-<percentage> - Description: Sets the start point of a top-directional linear gradient mask from a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(to top, black <percentage>, transparent var(--tw-mask-top-to)); mask-t-from-<color> - Description: Sets the start color of a top-directional linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(to top, <color> var(--tw-mask-top-from), transparent var(--tw-mask-top-to)); mask-t-from-(<custom-property>) - Description: Sets the start point of a top-directional linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(to top, black var(<custom-property>), transparent var(--tw-mask-top-to)); mask-t-from-[<value>] - Description: Sets the start point of a top-directional linear gradient mask from an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(to top, black <value>, transparent var(--tw-mask-top-to)); mask-t-to-<number> - Description: Sets the end point of a top-directional linear gradient mask to a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent calc(var(--spacing * <number>)); mask-t-to-<percentage> - Description: Sets the end point of a top-directional linear gradient mask to a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent <percentage>); mask-t-to-<color> - Description: Sets the end color of a top-directional linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), <color> var(--tw-mask-top-to)); mask-t-to-(<custom-property>) - Description: Sets the end point of a top-directional linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent var(<custom-property>)); mask-t-to-[<value>] - Description: Sets the end point of a top-directional linear gradient mask to an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(to top, black var(--tw-mask-top-from), transparent <value>); mask-r-from-<number> - Description: Sets the start point of a right-directional linear gradient mask from a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(to right, black calc(var(--spacing * <number>)), transparent var(--tw-mask-right-to)); mask-r-from-<percentage> - Description: Sets the start point of a right-directional linear gradient mask from a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(to right, black <percentage>, transparent var(--tw-mask-right-to)); mask-r-from-<color> - Description: Sets the start color of a right-directional linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(to right, <color> var(--tw-mask-right-from), transparent var(--tw-mask-right-to)); mask-r-from-(<custom-property>) - Description: Sets the start point of a right-directional linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(to right, black var(<custom-property>), transparent var(--tw-mask-right-to)); mask-r-from-[<value>] - Description: Sets the start point of a right-directional linear gradient mask from an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(to right, black <value>, transparent var(--tw-mask-right-to)); mask-r-to-<number> - Description: Sets the end point of a right-directional linear gradient mask to a numeric spacing value. - Parameters: - <number>: Multiplier for --spacing variable. - CSS: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent calc(var(--spacing * <number>)); mask-r-to-<percentage> - Description: Sets the end point of a right-directional linear gradient mask to a percentage. - Parameters: - <percentage>: Percentage value (e.g., 50%). - CSS: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent <percentage>); mask-r-to-<color> - Description: Sets the end color of a right-directional linear gradient mask. - Parameters: - <color>: Any valid CSS color value. - CSS: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), <color> var(--tw-mask-right-to)); mask-r-to-(<custom-property>) - Description: Sets the end point of a right-directional linear gradient mask using a CSS custom property. - Parameters: - <custom-property>: Name of a CSS custom property. - CSS: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent var(<custom-property>)); mask-r-to-[<value>] - Description: Sets the end point of a right-directional linear gradient mask to an arbitrary value. - Parameters: - <value>: Any valid CSS value. - CSS: mask-image: linear-gradient(to right, black var(--tw-mask-right-from), transparent <value>); ``` |