Using
*{ transition: all 0.25s linear; }
will apply the transition property to every element on your website, while specifying the element you want to animate will only affect that specific element. For instance,
.animate{transition: all 0.25s linear;}
If speed is a concern, then using *{ /* style */ }
is the slowest approach.
ID selectors are the most efficient, followed by Class selectors and Universal selectors:
#main-navigation { } /* ID (Fastest) */
body.home #page-wrap { } /* ID */
.main-navigation { } /* Class */
ul li a.current { } /* Class *
ul { } /* Tag */
ul li a { } /* Tag */
* { } /* Universal (Slowest) */
#content [title='home'] /* Universal */