Hi all,
Just been playing around with some transition stuff. I don't know anything about CSS but have learnt a few basics while playing around.
Something I can't work out however:
Does anyone know how to get rid of the fade effect when moving between passages?
I've added this:
http://www.glorioustrainwrecks.com/node/5018 And while this certainly improves things there is still a clearly noticeable 'fade in' when clicking on a link and going into a new passage. I'm using Windows 7/Twine 1.4/Sugarcane/Google Chrome - I've tested other browsers with the same result.
What I'm looking for is a way to have the next passage appear without any transition effects. I'm using images in my .tws so if I can achieve this I will be able to create the kind of imitation of animation a visual novel achieves.
Advance thanks to anyone who has any ideas.
x
Comments
Hope if someone else ever looks on how to solve this problem they find this thread via search.
I think actually the problem is the unique stylesheet I'm using. It's a lightly modified version of Leon's "The Earth's Story Illustrated" http://www.glorioustrainwrecks.com/node/5163
My stylesheet:
#sidebar {
display:none;
}
body {
margin: 0;
padding: 0;
height:100%;
}
#passages {
margin:0;
padding: 0;
height:100%;
}
#passages * {
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.passage {
position:relative;
width: 80%;
font-size:3em;
font-family: "SF Pixelate";
margin: 2em auto 0 auto;
}
.passage .header {
width:100%;
height:650px;
min-height: 480px;
border: #fff double 0.5em;
border-radius: 1em;
margin: 0 auto 1.5em auto;
padding: 0;
background-position: center;
background-repeat: no-repeat;
}
.passage .content {
top: 500px;
width:100%;
border: #fff double 0.5em;
border-radius: 1em;
padding: 1em;
}
a.internalLink, a.externalLink {
color:#eee;
font-weight:normal;
}
a.internalLink:hover, a.externalLink:hover {
text-decoration:none;
border-bottom: none;
color:#000;
background-color:#fff;
font-weight:normal;
padding-left: 0;
}
a.internalLink:active, a.externalLink:active {
border-bottom: 0;
}
@media screen and (max-width: 960px) {
.passage {
font-size: 1.5em;
width: 75%;
}
}
@media screen and (max-width: 640px) {
.passage {
font-size: 1.25em;
width: 95%;
}
}
My answer before reading carefully: (Didn't want to delete it since it may still be useful) (Since I registered just to write this reply, I just found out that there is no spoiler function, or I'm unaware of it)
That's actually pretty simple. All CSS needs to be in a passaged tagged with "stylesheet". If you have other CSS (like changing the background color for all passages), make a new passage. Put the CSS-code from Sharpe in this passage. Now add another tag to your passage. Call it "noTransition" for example. You can't use "no transition" because tags are separated with spaces already. Unless you want to check for two tags instead of one. The only part that's left now is to tag every passage that should be affected by this.
After reading carefully: In addition to the "stylesheet" tag, you'll need the "transition" tag. It should still be possible to apply it selectively with the method mentioned above (add additional tags to a stylesheet passage to apply the stylesheets selectively). If that's not the case, I can't personally answer your question, but it'll probably need a widget or script then.