Figure 5.3. Creating a transition triggered by JavaScriptIntheexamplesmentioned,we’veusedthetransitionshorthandproperty.It’sa
condensedwayofspecifyingfour“longhand”properties,whicharelistedin
Table5.2.Table 5.2. CSS transition properties
Property Description Initial value
transition-duration How long the transition should last 0s (no transition)
all (all animatable
properties)transition-property Which property to transitionHow to calculate the values between ease
the start and end valuestransition-timing-functionHow long the browser should wait 0s (no delay)
between changing the property and
starting the transitiontransition-delayEachlonghandpropertyhasaninitialvalue.It’sadefaultvaluethatthebrowser
willuseunlessthepropertyisexplicitlyset.Forexample,theinitialvalueof196 CSS Master