CSS Portal

CSS transition-property Property

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!

Description

The transition-property CSS property determines which of an element’s properties should undergo an animated transition when their values change. It acts as a filter: only the properties named in this list will animate when their computed values change, while others will jump to their new values immediately. This property is useful for limiting animations to only the properties you intend to animate, avoiding unintended or costly animations when many properties change at once.

Because transition-property only selects which properties participate in transitions, it works together with timing and duration controls to produce the visible effect. The length and pacing of each transition are controlled by transition-duration and transition-timing-function, and any start delay is set by transition-delay. These transition sub-properties (and their order) can also be specified together using the shorthand transition, but transition-property retains its role as the selector of which properties will animate.

In practice, you choose which properties to include in transition-property with performance and predictability in mind. Animating composited properties such as transform or opacity is typically more efficient and smoother than forcing layout-triggering properties to animate. Also note that listing a property here has no effect unless that property’s computed value actually changes; if it doesn’t change, no transition will run.

Definition

Initial value
all
Applies to
All elements, :before and :after pseudo elements
Inherited
No
Computed value
Same as specified value
Animatable
No
JavaScript syntax
object.style.transitionProperty

Interactive Demo

Hover over me
to see transition.

Syntax

transition-property: none | <single-transition-property> [ ',' <single-transition-property> ]* 

Values

<single-transition-property> = all | <IDENT>
  • noneNo properties will transition.
  • allAll properties that can have an animated transition will do so.
  • IDENTA string identifying the property to which a transition effect should be applied when its value changes. This identifier is composed by case-insensitive letter a to z, numbers 0 to 9, an underscore (_) or a dash(-). The first non-dash character must be a letter (that is no number at the beginning of it, even preceded by a dash). Also two dashes are forbidden at the beginning of the identifier.

Example

<div class="demo">
<h2>transition-property example</h2>
<div class="box" tabindex="0">Hover me</div>
</div>
/* Basic page styles */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background: #f5f7fa;
}

/* Demo layout */
.demo {
  text-align: center;
}

/* The box that will transition */
.box {
  width: 180px;
  height: 120px;
  line-height: 120px;
  background-color: #4f86f7;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  /* Only these properties will animate */
  transition-property: background-color, transform;
  transition-duration: 400ms;
  transition-timing-function: ease;
  transition-delay: 0ms;
  box-shadow: 0 6px 18px rgba(79,134,247,0.18);
}

/* Hover changes background-color, transform and border-radius (border-radius changes instantly because it's not listed in transition-property) */
.box:hover {
  background-color: #2b6df6;
  transform: translateY(-8px) scale(1.05);
  border-radius: 24px;
}

/* For keyboard accessibility */
.box:focus {
  outline: 3px solid rgba(43,109,246,0.18);
}

Browser Support

The following information will show you the current browser support for the CSS transition-property property. Hover over a browser icon to see the version that first introduced support for this CSS property.

This property is supported by all modern browsers.
Desktop
Chrome
Edge
Firefox
Opera
Safari
Tablets & Mobile
Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-

Last updated by CSSPortal on: 1st January 2026

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!