How could I display text that flashed red for a half second or so and then reverted to black? (Or was put in bold and reverted to normal, etc.)
|
EDIT: This looks too plain in comparison to all the cool effects that can be achieved with methods used in other answers. The following is an attempt to arm-twist
(Note: try it in the last cell of your notebook to avoid flickering cell sizes). |
||||
|
|
|
As a variation of answer to this question, here is an approach I used for lectures. Here are the functions Ac and Pl that either accentuate or leave the text plain:
and
And here is an example of its application:
The strings "+BB" and "+DD" are accentuated. The accentuation is shown upon the mouseclick on the corresponding elements. |
||||
|
|
If you want it to flash only once
|
|||||
|
|
It's worth pointing out that several of the other answers keep dynamically re-evaluating an expression until infinity. Here's a solution that fades out the text gradually, and more importantly: it does not keep re-evaluating the
(Update: I overlooked that István's original answer uses |
|||||||
|
|
Use Dynamic and Refresh:
|
|||
|
|
|
By specifying different values for
(Not that the actual flashing is faster in Mathematica, the slowdown is because of exporting it to GIF.) With
|
|||||||||
|


