Sort of resize/reweight font with sliders
parent
abde58c0f9
commit
be6fe16adf
|
@ -20,6 +20,9 @@ let chyron_text_02 = ''
|
||||||
let chyron_text_03 = ''
|
let chyron_text_03 = ''
|
||||||
let chyron_text_04 = ''
|
let chyron_text_04 = ''
|
||||||
|
|
||||||
|
export let chyron_font_size = 2.75;
|
||||||
|
export let chyron_font_weight = 600;
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="main">
|
<div class="main">
|
||||||
|
@ -37,17 +40,25 @@ let chyron_text_04 = ''
|
||||||
<input bind:value={chyron_text_03} placeholder="{chyron_text_03}">
|
<input bind:value={chyron_text_03} placeholder="{chyron_text_03}">
|
||||||
<input bind:value={chyron_text_04} placeholder="{chyron_text_04}">
|
<input bind:value={chyron_text_04} placeholder="{chyron_text_04}">
|
||||||
</p>
|
</p>
|
||||||
|
<input type=range bind:value={chyron_font_size}>
|
||||||
|
<input type=range bind:value={chyron_font_weight}>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
<div class="horizontal">
|
<div class="horizontal">
|
||||||
<!-- delay affects text starting point offset-->
|
<!-- delay affects text starting point offset-->
|
||||||
<Ticker pausing=false duration=60 delay=-10>
|
<Ticker pausing=false duration=60 delay=-10>
|
||||||
{chyron_text_01}
|
<span
|
||||||
{chyron_text_02}
|
style="font-size: {chyron_font_size}em;
|
||||||
{chyron_text_03}
|
font-weight: {chyron_font_weight}
|
||||||
{chyron_text_04}
|
">
|
||||||
</Ticker>
|
{chyron_text_01}
|
||||||
|
{chyron_text_02}
|
||||||
|
{chyron_text_03}
|
||||||
|
{chyron_text_04}
|
||||||
|
</span>
|
||||||
|
</Ticker>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -61,10 +72,8 @@ let chyron_text_04 = ''
|
||||||
margin:30px 5px;
|
margin:30px 5px;
|
||||||
}
|
}
|
||||||
.horizontal{
|
.horizontal{
|
||||||
padding:424px;
|
/* padding:426px;*/
|
||||||
font-family: Verdana, sans-serif;
|
font-family: Verdana, sans-serif;
|
||||||
font-weight: 600;
|
|
||||||
font-size: 2.75em;
|
|
||||||
background: rgba(30, 24, 150, 0.4);
|
background: rgba(30, 24, 150, 0.4);
|
||||||
@keyframes horizontal {
|
@keyframes horizontal {
|
||||||
100% { transform: translateX(-50%); }
|
100% { transform: translateX(-50%); }
|
||||||
|
|
Loading…
Reference in New Issue