I was annoyed at StreamElements' default "Row" widget, so I decided to make my own. It's a 500w x 100h animation that respects StreamElements' animations (I like slide in/out). **Best placed on the edge of your scene).
- Enable custom CSS for your widget.
- Add the contents of "demers-slider.css" to the CSS tab
- Add the contents of "demers-slider.html" to the HTML tab
- Add the contents of "demers-slider.json" to the Fields tab
- Customize your variables (see below)
Important Note: You must use the pickers and text field in the "Variables" menu, not the default StreamElements pickers. These will not work.
- The sound dialog, however, WILL work.
Inside the variables menu, there are options for:
- Highlight color
- Background color
- Image (will scale down with more message text; 100x100 works best, and will be scaled to 85% to have a nice padding around it. Can change the CSS if you'd like.)
- Font Family
- Message text
- Text Alignment
In text alignment, if you want to add the Highlight color around anything, surround the word(s) with <span class="highlight">TEXT</span>
. You must also include StreamElements' variables (see below)
Example:
<span class="highlight">{name}</span> is the new wallet god with a <span class="highlight">{currency}{amount}</span> donation!
The above code in the "Message" field would highlight the {name}, {currency} and {amount} variables.
Usually in the alert you're editing, it'll show the valid variables at the top.