Advice handling transition-property errors.
See original GitHub issue
I’ve Googled enough to find the various issues filed pertaining to this over the years. I know that the general advice is just not to use transition-*
in favor of the transition
shorthand.
That said, I am working on overhauling an enterprise project that is three years old. There are currently 914 instances of transition-property
, and from what I have seen, each one has the same siblings, such as:
.example {
transition-duration: 100ms;
transition-property: font-size, color, padding;
transition-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
}
Needless to say, I probably won’t be allotted the bandwidth to go through and replace each one with the correct transition
shorthand, but I need autoprefixer to be a part of this build improvement.
While a solution would be nice (maybe a plugin that will get me past this error?), any advice would be appreciated.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
transition-property - CSS: Cascading Style Sheets | MDN
The transition-property CSS property sets the CSS properties to which a transition effect should be applied.
Read more >Managing the Transition CSS Property | by Taurean Bryant
The transition CSS property can be a pain to maintain in a shared codebase. Here is how I went about establishing standards.
Read more >transition | CSS-Tricks
transition properties allow elements to change values over a specified duration, animating the property changes, rather than having them occur ...
Read more >CSS3 Transitions: Thank God We Have A Specification!
Transitionable Properties; Priority Of Transition Properties; Transitioning From And To auto; Implicit Transitions; Transitions And Pseudo- ...
Read more >CSS transition-property Property - W3Schools
Tip: A transition effect could typically occur when a user hover over an element. Note: Always specify the transition-duration property, otherwise the duration ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just for those who facing the error “autoprefixer: Replace transition-property to transition, because Autoprefixer could not support any cases of transition-property and other transition-*”.
In my case it was enough to slightly change the
browserslist
specification in package.json:For future reference.
https://www.npmjs.com/package/postcss-ignore-transition-properties