How to change background color after 3 seconds

Twine Version: Harlowe 3.3.9

After three seconds, I want the background changed to black with white text. So far I have this: But I don’t know how to do the rest

I used to be a $type (live: 3s)[(stop:)until I wasn't]

BTW here is my stylesheet ;;;;;;;

tw-story {
  background-color:#f4d783;
  color:black;
}
tw-sidebar {display: none}

help? thnks

I used to be a $type (live: 3s)[(stop:)(enchant:?page,(bg:black)+(color:white))until I wasn't]
1 Like

Now that the (live:) macro has been altered to internally work the same way as the (after:) and (event:) macros, and as the applying of that specific styling only needs to be done one even if other content is dynamically updated, I would use a slightly different set of macro calls…

I used to be a $type (after: 3s)[{
	(change: ?Page, (bg: black) + (color: white))
	until I wasn't
}]

note: Collapsing whitespace markup has only been added to the above example so that it can be formatted to make the code a little easier to read. That formatting and markup can be remove.

2 Likes