When asking a question you need to state both the name and version of the Story Format you are using, as answers can be different for each one.
The Pure CSS Animated Ellipsis code snippet will work in all the currently released story formats. The HTML part is placed within a Passage and the CSS part within your story's Story Stylesheet area.
To convert the example to use Harlowe related features I suggest change the CSS to the something like the following:
Comments
The Pure CSS Animated Ellipsis code snippet will work in all the currently released story formats. The HTML part is placed within a Passage and the CSS part within your story's Story Stylesheet area.
To convert the example to use Harlowe related features I suggest change the CSS to the something like the following: ... then use a named hooked named ellipsis to add the effect to text within a Passage.
NOTE: You can change the attributes values within the CSS selectors to whatever makes sense in your project.