Hi, all. This problem probably has a simple solution, but I'm tearing my hair out trying to figure out what it is.
I'm using Sugarcube 2.18 and Twine 2.1.3. I set up page transitions between "chapters" in my story by using class selectors like so:
body.chapterstart .transition-in
{
position: absolute;
opacity:0;
}
body.chapterstart .passage
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
The transitions are working fine except for one thing: the inner borders of the menu table load instantly, not with the 1-second delay. Since I set the UI bar to change colors between certain sections of the story, this looks pretty awful in action. I ended up adding code for every element of the UI bar and menu to try and get the table borders to fade in properly, but no dice. Here's the full code:
body.chapterstart .transition-in
{
position: absolute;
opacity:0;
}
body.chapterstart .passage
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #ui-bar
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #ui-body
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #story-title
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #story-subtitle
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #story-author
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #story-caption
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu ul
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu ul:empty
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu li
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu li:not(:first-child)
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #menu td
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #ui-bar-toggle
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
body.chapterstart #ui-bar-history [id|="history"]
{
transition: 1s linear;
-webkit-transition: 1s linear;
}
Could you please tell me what I should put in to get the inner table borders to fade in like the rest of the passage? (And is there a more elegant alternative to the code I typed out?) Thank you!