Template:Appearing Text Effect: Difference between revisions
Template page
More actions
Content deleted Content added
Tesinormed (talk | contribs) No edit summary Tags: Reverted 2017 source edit |
LordSkorne7 (talk | contribs) No edit summary Tags: Reverted 2017 source edit |
||
| Line 1: | Line 1: | ||
<includeonly> |
|||
| ⚫ | |||
<templatestyles src="Appearing Text Effect/styles.css" /> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<!-- Per-letter effect --> |
|||
{{#ifeq: {{{lettereffect|no}}}|yes| |
|||
<span class="appear-effect letter-effect |
|||
| ⚫ | |||
{{#switch: {{{fadefrom|center}}} |
{{#switch: {{{fadefrom|center}}} |
||
| left = fade-ltr |
| left = fade-ltr |
||
| right = fade-rtl |
| right = fade-rtl |
||
| center = fade-center |
| center = fade-center }}"> |
||
{{#invoke:String|split |
|||
| ⚫ | |||
|{{{text|Insert Text Here}}} |
|||
| ⚫ | |||
animation- |
||<span style="animation-delay:{{#expr:@index*{{{letterdelay|0.05}}}}}s;">@item</span> |
||
| ⚫ | |||
| ⚫ | |||
</span> |
|||
| ⚫ | |||
| |
|||
| ⚫ | |||
<!-- Normal animation --> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
{{#ifeq: {{{fadeout|no}}}|yes|fade-away}} |
|||
| ⚫ | |||
{{#switch: {{{fadefrom|center}}} |
|||
| ⚫ | |||
| left = fade-ltr |
|||
" |
|||
| right = fade-rtl |
|||
| ⚫ | |||
| center = fade-center }}" |
|||
| ⚫ | |||
animation-duration: {{{speed|2s}}}; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}} |
|||
</span> |
|||
</includeonly> |
|||
<noinclude> |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
| Line 94: | Line 116: | ||
"default": "center", |
"default": "center", |
||
"description": "Direction of fade: center, left (left-to-right), or right (right-to-left)" |
"description": "Direction of fade: center, left (left-to-right), or right (right-to-left)" |
||
}, |
|||
"lettereffect": { |
|||
"label": "Per-letter Animation", |
|||
"type": "string", |
|||
"default": "no", |
|||
"description": "yes to animate each letter individually" |
|||
}, |
|||
"letterdelay": { |
|||
"label": "Letter Delay", |
|||
"type": "string", |
|||
"default": "0.05", |
|||
"description": "Time in seconds between letters appearing (only if per-letter enabled)" |
|||
} |
} |
||
}, |
}, |
||
"description": "Animates text to appear with optional delay, glow, |
"description": "Animates text to appear with optional delay, glow, directional fade, fading out, per-letter animation, and repeat control.", |
||
"format": "inline" |
"format": "inline" |
||
} |
} |
||
Revision as of 06:47, April 16, 2025
Animates text to appear with optional delay, glow, directional fade, fading out, per-letter animation, and repeat control.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | text | The content that appears
| String | optional |
| Text Color | color | no description
| String | optional |
| Font Family | font | no description
| String | optional |
| Font Size | fontsize | no description
| String | optional |
| Glow Effect | glow | yes or no
| String | optional |
| Glow Color | glowcolor | no description
| String | optional |
| Text Alignment | align | left, center, right
| String | optional |
| Screen Position | position | e.g. top: 10px; left: 100px;
| String | optional |
| Animation Speed | speed | How fast the appearance animation runs
| String | optional |
| Delay | delay | Time before animation starts
| String | optional |
| Repeat Count | repeat | e.g. 1, infinite
| String | optional |
| Fade After Appear | fadeout | yes to fade away after appearing
| String | optional |
| Fade Direction | fadefrom | Direction of fade: center, left (left-to-right), or right (right-to-left)
| String | optional |
| Per-letter Animation | lettereffect | yes to animate each letter individually
| String | optional |
| Letter Delay | letterdelay | Time in seconds between letters appearing (only if per-letter enabled)
| String | optional |
Wow
Oh mama
Can you believe this shit?