Skip to content

Commit 919fc8e

Browse files
committed
[css-transitions-1] Replace PNG graphic with SVG version
1 parent c524b9e commit 919fc8e

File tree

3 files changed

+36
-6
lines changed

3 files changed

+36
-6
lines changed

css-transitions-1/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,13 @@ Introduction {#introduction}
141141
For example, suppose that transitions of one second have been defined on the 'left' and
142142
'background-color' properties. The following diagram illustrates the effect of updating those properties on an element, in this case moving it to the right and changing the background from red to blue. This assumes other transition parameters still have their default values.
143143
</p>
144-
<div class="figure">
145-
<img src="transition1.png" alt="">
146-
</div>
147-
<p class="caption">
148-
Transitions of 'left' and 'background-color'
149-
</p>
144+
<figure>
145+
<img src="transition-example.svg" width="518"
146+
alt="Example showing the initial, intermediate, and final states of a box whose color and position is interpolated">
147+
<figcaption>
148+
Transitions of 'left' and 'background-color'.
149+
</figcaption>
150+
</figure>
150151
<p>
151152
Transitions are a presentational effect. The <a>computed value</a> of a property transitions over time from the old value to the new value. Therefore if a script queries the <a>computed value</a> of a property (or other data depending on it) as it is transitioning, it will see an intermediate value that represents the current animated value of the property.
152153
</p>
Lines changed: 29 additions & 0 deletions
Loading

css-transitions-1/transition1.png

-3.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)