Template:Fading Text Effect: Difference between revisions
More actions
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| ⚫ | |||
<includeonly> |
|||
{{#ifexpr: {{{lines|4}}} >= 1 | |
|||
<templatestyles src="Falling Text Effect/styles.css"/> |
|||
| ⚫ | |||
<span class="falling-effect" style=" |
|||
}} |
|||
transform: translateY({{{land|100vh}}}); |
|||
{{#ifexpr: {{{lines|4}}} >= 2 | |
|||
animation-name: falling-text-effect; |
|||
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.6; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#aaa}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span> |
|||
animation-duration: {{{speed|3s}}}; |
|||
}} |
|||
animation-iteration-count: {{{repeat|1}}}; |
|||
{{#ifexpr: {{{lines|4}}} >= 3 | |
|||
animation-fill-mode: forwards; |
|||
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.3; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 4px {{{glowcolor|white}}}, 0 0 6px {{{glowcolor|#888}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span> |
|||
animation-timing-function: ease-in; |
|||
}} |
|||
text-align:{{{align|center}}}; |
|||
{{#ifexpr: {{{lines|4}}} >= 4 | |
|||
| ⚫ | |||
<span style="display:block; font-size:{{{fontsize|16px}}}; margin-bottom:{{{spacing|5px}}}; opacity:0.1; {{#ifeq:{{{glow|yes}}}|yes|text-shadow:0 0 2px {{{glowcolor|white}}}, 0 0 4px {{{glowcolor|#666}}};|text-shadow:none;}}">{{{text|Insert Text Here}}}</span> |
|||
font-size:{{{fontsize|16px}}}; |
|||
}} |
|||
color:{{{color|#ffffff}}}; |
|||
| ⚫ | |||
| ⚫ | |||
"> |
|||
{{{text|Insert Text Here}}} |
|||
| ⚫ | |||
</includeonly> |
|||
<noinclude> |
<noinclude> |
||
| Line 25: | Line 21: | ||
"label": "Text", |
"label": "Text", |
||
"type": "string", |
"type": "string", |
||
"description": "The content that falls down the screen", |
|||
"default": "Insert Text Here" |
"default": "Insert Text Here" |
||
}, |
}, |
||
| Line 37: | Line 32: | ||
"type": "string", |
"type": "string", |
||
"default": "serif" |
"default": "serif" |
||
}, |
|||
"fontsize": { |
|||
"label": "Font Size", |
|||
"type": "string", |
|||
"default": "16px" |
|||
}, |
}, |
||
"align": { |
"align": { |
||
| Line 58: | Line 48: | ||
"default": "#ccc" |
"default": "#ccc" |
||
}, |
}, |
||
" |
"fontsize": { |
||
"label": " |
"label": "Font Size", |
||
"type": "string", |
"type": "string", |
||
"default": " |
"default": "16px" |
||
"description": "Time the text takes to fall (e.g., 2s, 5s)" |
|||
}, |
}, |
||
" |
"spacing": { |
||
"label": " |
"label": "Line Spacing", |
||
"type": "string", |
"type": "string", |
||
"default": " |
"default": "5px" |
||
"description": "How far down the screen the text falls" |
|||
}, |
|||
"repeat": { |
|||
"label": "Repeat Count", |
|||
"type": "string", |
|||
"default": "1", |
|||
"description": "How many times the text repeats the fall" |
|||
} |
} |
||
}, |
}, |
||
"description": "Displays |
"description": "Displays fading text repeated several times with customizable glow, alignment, font, and spacing.", |
||
"format": "inline" |
"format": "inline" |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
| ⚫ | |||
| ⚫ | |||
== Examples == |
|||
{{Fading Text Effect|text=I should be |
{{Fading Text Effect|text=I should be on the right - and I also should be glowing|align=right|glowcolor=orange|color=red}} |
||
| ⚫ | |||
| ⚫ | |||
</noinclude> |
</noinclude> |
||
Latest revision as of 09:40, March 30, 2025
Insert Text Here Insert Text Here Insert Text Here Insert Text Here
Displays fading text repeated several times with customizable glow, alignment, font, and spacing.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | text | no description
| String | optional |
| Color | color | no description
| String | optional |
| Font | font | no description
| String | optional |
| Text Alignment | align | no description
| String | optional |
| Glow | glow | no description
| String | optional |
| Glow Color | glowcolor | no description
| String | optional |
| Font Size | fontsize | no description
| String | optional |
| Line Spacing | spacing | no description
| String | optional |
I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing I should be in the center - and also I should be glowing
I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing I should be on the left - and also I shouldn't be glowing
I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing I should be on the right - and I also should be glowing