This repository was archived by the owner on Apr 29, 2020. It is now read-only.
Releases: benface/tailwindcss-transitions
Releases · benface/tailwindcss-transitions
v2.2.0
Added
- Added a
defaulttransition property, which generates a simpletransitionclass and includes all the properties fromcolorsas well asopacity,box-shadow, andtransform(taken from Tailwind 1.2) - Added a
shadowtransition property (taken from Tailwind 1.2) - Added
50,75,150,200,300, and400transition durations
Changed
- The
transition-colorsutility now includes thefillandstrokeproperties, in addition tobackground-color,border-color, andcolor(taken from Tailwind 1.2)
v2.1.0
Changed since 2.1.0-beta.2
- Allowed for durations and delays to be defined as numbers but be output as
ms
Changed since 2.0.x
- Changed the implementation of the
defaultduration, timing function, and delay to prevent generating base styles that change the value oftransition-property,transition-duration,transition-timing-function, andtransition-delayon all elements, in order to prevent conflicts with libraries that don’t expect these properties to differ from their CSS-defined default - Base styles targeting all elements are still generated if a
defaultduration, timing function, and/or delay is set (which is the case by default: thedefaultduration is250ms), but they define custom properties that are very unlikely to conflict with third-party libraries (e.g.--transition-duration); these are then used to set actual properties on elements that have atransition-[property]ortransition-[duration]class - As a result, it is now possible to only use a transition duration utility (e.g.
transition-500) on an element to make it transition all its properties; no need fortransition-allanymore, since the default value oftransition-propertyis alreadyall
v2.1.0-beta.2
Release 2.1.0-beta.1 was deprecated and reverted, so the following changes were made from release 2.0.1:
Changed
- Changed the implementation of the
defaultduration, timing function, and delay to prevent generating base styles that change the value oftransition-property,transition-duration,transition-timing-function, andtransition-delayon all elements, in order to prevent conflicts with libraries that don’t expect these properties to differ from their CSS-defined default - Base styles targeting all elements are still generated if a
defaultduration, timing function, and/or delay is set (which is the case by default: thedefaultduration is250ms), but they define custom properties that are very unlikely to conflict with third-party libraries (e.g.--transition-duration); these are then used to set actual properties on elements that have atransition-[property]ortransition-[duration]class - As a result, it is now possible to only use a transition duration utility (e.g.
transition-500) on an element to make it transition all its properties; no need fortransition-allanymore, since the default value oftransition-propertyis alreadyall
v2.1.0-beta.1 [DEPRECATED]
Decided to go in another direction for v2.1, and reverted most of the changes in this release.
Added
- Added the ability to set a
defaulttransition property, which is set toautoby default, meaning that it depends on thedefaulttransition duration: if it’s0sor0msthenautoresolves toall, otherwise it resolves tonone
Changed
- Changed the
defaulttransition duration from250msto0ms - As a result of the above, base styles targeting all elements are no longer generated by default since the default property and duration are now the same as the CSS defaults (
alland0s, respectively) - Therefore, with the new defaults you only need a transition duration utility (e.g.
transition-fast) on an element to make it transition all its properties (no need fortransition-all); if you want the previous behaviour, simply set thedefaulttransition duration to a non-zero value - Changed the default transition durations from a numeric scale (
250,500,750, etc.) to a descriptive scale (slow,medium,fast, etc.) - Changed the default transition delays to match the new duration values, but with a numeric scale (
0,200,400,600,800, and1000)
v2.0.1
v2.0.0
Changed since 2.0.0-beta.2
- Added support for global variants thanks to Tailwind’s
variants()helper function
Added since 1.x
- Tailwind 1.0.0 compatibility
Changed since 1.x
- The plugin doesn’t accept a config object anymore; instead it finds what it needs in the
themeandvariantskeys of your config (seeREADMEfor more info) - Multiple utilities as well as responsive variants are now generated by default (see
READMEfor more info) - Shorter class names for transition durations (
transition-duration-500is nowtransition-500) and timing functions (transition-timing-easeis nowtransition-ease) - Transition utilities now set
transition-propertyinstead of thetransitionshorthand; as a result, responsive transition utilities don’t reset the duration, timing function or delay anymore - For the above to work, the plugin now sets some base styles on all elements (changes
transition-property's default value ofalltonone, and sets the default duration, timing function, and delay defined in the theme)
v2.0.0-beta.2
Removed
- Removed
transitionPropertyandwillChange’sdefaultkey feature introduced in beta 1; it is confusing because the behaviour is different from the otherdefaultkeys in this plugin, but also because it’s not clear what the classes do... it’s better to be explicit (e.g.transition-allandwill-change-contents)
v2.0.0-beta.1
Added
- Tailwind 1.0.0 compatibility
transitionPropertyandwillChangenow accept adefaultkey that generates a simpletransition/will-changeclass
Changed
- The plugin doesn’t accept a config object anymore; instead it finds what it needs in the
themeandvariantskeys of your config (seeREADMEfor more info) - Multiple utilities as well as responsive variants are now generated by default (see
READMEfor more info) - Shorter class names for transition durations (
transition-duration-500is nowtransition-500) and timing functions (transition-timing-easeis nowtransition-ease) - Transition utilities now set
transition-propertyinstead of thetransitionshorthand; as a result, responsive transition utilities don’t reset the duration, timing function or delay anymore - For the above to work, the plugin now sets some base styles on all elements (changes
transition-property's default value ofalltonone, and sets the default duration, timing function, and delay defined in the theme)