NOTE: As explained in the Usability and accessibility section of the wikipedia article on the old HTML Blink element, continuous blinking text is generally considered a bad thing when it comes to Accessibility.
You need to state the name and full version number of the Story Format you are using, as answers can be different for each one. Based on the syntax of your example I will assume you are using Harlowe, I will also assume you are using the default version of v1.2.4
The following does what you asked using those two macros.
(set: $warning to (text-color: 'red') + (text-style: 'blink'))
The following should be $warning[red and flashing]
... although there are 2 main issues with doing it that way.
1. The animation based CSS generated by that code may not work in all web-browsers.
2. You have no (easy) way to control the speed of the blinking.
The Blink element article I linked to contains an example in the Implementation section of how to archive a similar effect using CSS. The Harlowe equivalent would look something like the following, which needs to be placed in your story's Story Stylesheet area.
Comments
You need to state the name and full version number of the Story Format you are using, as answers can be different for each one. Based on the syntax of your example I will assume you are using Harlowe, I will also assume you are using the default version of v1.2.4
The following does what you asked using those two macros. ... although there are 2 main issues with doing it that way.
1. The animation based CSS generated by that code may not work in all web-browsers.
2. You have no (easy) way to control the speed of the blinking.
The Blink element article I linked to contains an example in the Implementation section of how to archive a similar effect using CSS. The Harlowe equivalent would look something like the following, which needs to be placed in your story's Story Stylesheet area. ... and you would use code like the following in your Passage to invoke it: