question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Advice handling transition-property errors.

See original GitHub issue
screen shot 2017-09-04 at 2 31 30 am

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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sauron918commented, Apr 23, 2022

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:

"browserslist": {
    "production": [
      ">0.2%",  → ">0.3%"
      ...
    ],
1reaction
colshacolcommented, Sep 4, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found