![]() |
Tailwind CSS is a CSS framework that helps in building rapid custom UI. It is a highly customizable, low-level CSS framework that gives you all of the building blocks that you need. In Tailwind CSS, motion-safe and motion-reduce are utility classes used for creating animations. motion-safe ensures animations play regardless of user preferences, while motion-reduce scales back or disables animations for users who prefer reduced motion, creating more inclusive experiences. In this article, we’ll see how to use motion-safe and motion-reduce in Tailwind CSS. Motion Utilities in Tailwind CSS:
Syntax: // motion-safe
Example 1: Below example demonstrates the usage of motion-safe utility. HTML
Output: Example 2: Below example demonstrates the usage of motion-reduce. HTML
Output: |
Reffered: https://www.geeksforgeeks.org
CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 14 |