HTML and CSS Reference
In-Depth Information
CREATING EFFECTS WITH
TRANSITIONS
CSS made every web developer's life a whole lot easier
when it added
pseudoclasses
(
Pseudoclass Selectors
).
Suddenly, with the help of
:hover
and
:focus
, developers
could create interactive effects without writing any
JavaScript code. For example, to create a hover button,
you simply supply a set of new style properties for the
:hover
pseudoclass. These styles kick in automatically
when the visitor moves the mouse pointer over your but-
ton.