Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6114691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:00:17+00:00 2026-05-23T15:00:17+00:00

So I have the following CSS transitions attached to an element: a { -webkit-transition:color

  • 0

So I have the following CSS transitions attached to an element:

a { 
  -webkit-transition:color 0.1s ease-in, background-color 0.1s ease-in ;  
  -moz-transition:color 0.1s ease-in, background-color 0.1s ease-in;  
  -o-transition:color 0.1s ease-in, background-color 0.1s ease-in;  
  transition:color 0.1s ease-in, background-color 0.1s ease-in; 
}

Is there a way to disable these inherited transitions on specific elements?

a.tags { transition: none; } 

Doesn’t seem to be doing the job.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:00:18+00:00Added an answer on May 23, 2026 at 3:00 pm

    The use of transition: none seems to be supported (with a specific adjustment for Opera) given the following HTML:

    <a href="#" class="transition">Content</a>
    <a href="#" class="transition">Content</a>
    <a href="#" class="noTransition">Content</a>
    <a href="#" class="transition">Content</a>
    

    …and CSS:

    a {
        color: #f90;
        -webkit-transition:color 0.8s ease-in, background-color 0.1s ease-in ;  
        -moz-transition:color 0.8s ease-in, background-color 0.1s ease-in;  
        -o-transition:color 0.8s ease-in, background-color 0.1s ease-in;  
        transition:color 0.8s ease-in, background-color 0.1s ease-in; 
    }
    a:hover {
        color: #f00;
        -webkit-transition:color 0.8s ease-in, background-color 0.1s ease-in ;  
        -moz-transition:color 0.8s ease-in, background-color 0.1s ease-in;  
        -o-transition:color 0.8s ease-in, background-color 0.1s ease-in;  
        transition:color 0.8s ease-in, background-color 0.1s ease-in; 
    }
    a.noTransition {
        -moz-transition: none;
        -webkit-transition: none;
        -o-transition: color 0 ease-in;
        transition: none;
    }
    

    JS Fiddle demo.

    Tested with Chromium 12, Opera 11.x and Firefox 5 on Ubuntu 11.04.

    The specific adaptation to Opera is the use of -o-transition: color 0 ease-in; which targets the same property as specified in the other transition rules, but sets the transition time to 0, which effectively prevents the transition from being noticeable. The use of the a.noTransition selector is simply to provide a specific selector for the elements without transitions.


    Edited to note that @Frédéric Hamidi’s answer, using all (for Opera, at least) is far more concise than listing out each individual property-name that you don’t want to have transition.

    Updated JS Fiddle demo, showing the use of all in Opera: -o-transition: all 0 none, following self-deletion of @Frédéric‘s answer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using some CSS transitions like the following: .slide_left { -webkit-transition: all 0.25s ease-in;
I have the following css code .container { width:800px; background-color:yellow; margin:auto; display:table; } .cell
Consider the following CSS for a h2 element: h2 { -webkit-transition-property: -webkit-transform; -webkit-transform-origin-x: 0px;
I have a class with the following type of css animaton .cssanimation { -webkit-transition:
I have the following css code h1, h2, h3, h4 { color: #333; font-size:
I have the following CSS in my header: <style type=text/css> table, td { border-color:
If I have a css style that is the following: .transition { transition: left
I have following CSS: table tbody tr:last-child td { padding-top: 7px; border-bottom: 0; }
I have the following css: .btn_container { cursor: pointer; font-family: Tahoma,Verdana,Arial; font-size: 11px; padding:
I have the following css file: /*! * http://meyerweb.com/eric/tools/css/reset/ * v2.0 | 20110126 *

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.