Exactly what it sounds like. A CSS template that can be copied over to an OBS browser source with stylish animations and works right out-of-the-box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
2.5 KiB

@import url(https://fonts.googleapis.com/css2?family=Alata&display=swap);
@keyframes slidein{
0%{
left:800px;
font-size:16px;
}
5%{
left:0px;
}
75%{
opacity:1;
font-size:16px;
min-height:auto;
}
100%{
opacity:0;
font-size:0px;
min-height:0px;
}
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
text-shadow: 0 0 1px #000, 0 0 2px #000;
background: {background_color};
font-family: 'Roboto';
font-weight: 700;
font-size: {font_size};
line-height: 1.5em;
color: {text_color};
}
#log>div {
animation: fadeInRight .3s ease forwards, fadeOut 0.5s ease {message_hide_delay} forwards;
-webkit-animation: fadeInRight .3s ease forwards, fadeOut 0.5s ease {message_hide_delay} forwards;
}
.colon {
display: none;
}
#log {
display: table;
position: absolute;
bottom: 0;
left: 0;
padding: 0 10px 10px;
width: 100%;
table-layout: fixed;
}
#log>div {
display: table-row;
}
#log>div.deleted {
visibility: hidden;
}
#log .emote {
background-repeat: no-repeat;
background-position: center;
background-size: contain;
padding: 0.4em 0.2em;
position: relative;
}
#log .emote img {
display: inline-block;
height: 1em;
opacity: 0;
}
#log .message,#log .meta {
left:0px;
position:relative;
opacity:1;
font-size:0px;
overflow:auto;
-webkit-animation-duration:15s;
-webkit-animation-name:slidein;
-webkit-animation-iteration-count:1;
-webkit-animation-fill-mode:forwards;
animation-duration:15s;
animation-name:slidein;
animation-iteration-count:1;
animation-fill-mode:forwards;
text-shadow: #FFF 0px 0px 3px,#FFF 0px 0px 5px,#FFF 0px 0px 5px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 15px;
-webkit-text-shadow: #FFF 0px 0px 3px,#FFF 0px 0px 5px,#FFF 0px 0px 5px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 10px,#FF2D95 0px 0px 15px;
}
#log .meta {
width: 35%;
text-align: right;
padding-right: 0.5em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
#log .message {
word-wrap: break-word;
width: 65%;
}
.badge {
display: inline-block;
margin-right: 0.2em;
position: relative;
height: 1em;
vertical-align: middle;
top: -0.1em;
}
.name {
margin-left: 0.2em;
}