![]() Yes, as a simple list of, a length, percentage or calc() when both values are lengths, they are interpolated as lengths when both values are percentages, they are interpolated as percentages otherwise, both values are converted into a calc() function that is the sum of a length and a percentage (each possibly zero), and these calc() functions have each half interpolated as real numbers. Not explicitly set values are reset to their corresponding values.įor the absolute value, otherwise a percentage (This property is applied by first translating the element by the negated value of the property, then applying the element's transform, then translating by the property value.) ![]() For example, the transform-origin of the rotate() function is the centre of rotation. The transform-origin property lets you modify the origin for transformations of an element. The keywords are convenience shorthands and match the following values: keywordĬopy Code | & ] ? where = | z-offset Is a (and never a which would make the statement invalid) describing how far from the user eye the z=0 origin is set. y-offset-keyword Is one of the top, bottom or center keyword describing how far from the top edge of the box the origin of the transform is set. x-offset-keyword Is one of the left, right or center keyword describing how far from the left edge of the box the origin of the transform is set. y-offset Is a or a describing how far from the top edge of the box the origin of the transform is set. offset-keyword Is one of the left, right, top, bottom or center keyword describing the corresponding offset. Transform-origin: unset Values x-offset Is a or a describing how far from the left edge of the box the origin of the transform is set. * Global values */ transform-origin: inherit * y-offset-keyword x-offset-keyword z-offset */ transform-origin: bottom right 2cm ![]() * x-offset-keyword y-offset-keyword z-offset */ transform-origin: right bottom 2cm * x-offset-keyword y-offset z-offset */ transform-origin: left 5px -3px * y-offset x-offset-keyword z-offset */ transform-origin: 2px left 10px * x-offset y-offset z-offset */ transform-origin: 2px 30% 10px * y-offset-keyword x-offset-keyword */ transform-origin: top right * x-offset-keyword y-offset-keyword */ transform-origin: right top * x-offset-keyword y-offset */ transform-origin: left 2px * y-offset x-offset-keyword */ transform-origin: 2px left * x-offset y-offset */ transform-origin: 3cm 2px If you don't plan to use the transform-origin utilities in your project, you can disable them entirely by setting the transformOrigin property to false in the corePlugins section of your config file: // Code /* One-value syntax */ transform-origin: 2px transform-origin: bottom You can control which variants are generated for the transform-origin utilities by modifying the transformOrigin property in the variants section of your file.įor example, this config will also generate hover and focus variants: // ![]() Responsive and pseudo-class variantsīy default, only responsive variants are generated for transform-origin utilities. Learn more about customizing the default theme in the theme customization documentation. You change, add, or remove these by customizing the transformOrigin section of your Tailwind theme config. By default Tailwind provides transform-origin utilities for all of the built-in browser keyword options. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |