Template:Appearing Text Effect: Difference between revisions
Template page
More actions
Content deleted Content added
LordSkorne7 (talk | contribs) No edit summary Tags: Reverted 2017 source edit |
LordSkorne7 (talk | contribs) No edit summary Tags: Manual revert Reverted 2017 source edit |
||
| Line 2: | Line 2: | ||
<templatestyles src="Appearing Text Effect/styles.css" /> |
<templatestyles src="Appearing Text Effect/styles.css" /> |
||
<span class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}"> |
<span class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}"> |
||
| ⚫ | |||
class="appear-effect |
|||
{{# |
{{#ifeq: {{{fadeout|yes}}}|yes|fade-away}} |
||
| <span class="appear-effect letter-effect |
|||
{{#ifeq: {{{fadeout|no}}}|yes|fade-away}} |
|||
{{#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 |
|||
| ⚫ | |||
| ⚫ | |||
animation-duration: {{{speed|2s}}}; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| <!-- Normal animation fallback --> |
|||
| ⚫ | |||
<span class="appear-effect |
|||
color: {{{color|#ffffff}}}; |
|||
| ⚫ | |||
{{#switch: {{{fadefrom|center}}} |
|||
| ⚫ | |||
| left = fade-ltr |
|||
" |
|||
| right = fade-rtl |
|||
| ⚫ | |||
| center = fade-center }}" |
|||
| ⚫ | |||
animation-duration: {{{speed|2s}}}; |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
color: {{{color|#ffffff}}}; |
|||
| ⚫ | |||
| ⚫ | |||
>{{{text|Insert Text Here}}}</span> |
|||
}} |
|||
| <!-- Normal animation fallback --> |
|||
<span class="appear-effect |
|||
{{#ifeq: {{{fadeout|no}}}|yes|fade-away}} |
|||
{{#switch: {{{fadefrom|center}}} |
|||
| left = fade-ltr |
|||
| right = fade-rtl |
|||
| center = fade-center }}" |
|||
style=" |
|||
animation-duration: {{{speed|2s}}}; |
|||
animation-delay: {{{delay|0s}}}; |
|||
animation-iteration-count: {{{repeat|1}}}; |
|||
font-family: {{{font|var(--font-family-citizen-serif)}}}; |
|||
font-size: {{{fontsize|16px}}}; |
|||
color: {{{color|#ffffff}}}; |
|||
opacity: 0; |
|||
{{#ifeq: {{{glow|yes}}}|yes|text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}};|text-shadow: none;}}" |
|||
>{{{text|Insert Text Here}}}</span> |
|||
}} |
|||
| |
|||
<!-- Normal animation --> |
|||
<span class="appear-effect |
|||
{{#ifeq: {{{fadeout|no}}}|yes|fade-away}} |
|||
{{#switch: {{{fadefrom|center}}} |
|||
| left = fade-ltr |
|||
| right = fade-rtl |
|||
| center = fade-center }}" |
|||
style=" |
|||
animation-duration: {{{speed|2s}}}; |
|||
animation-delay: {{{delay|0s}}}; |
|||
animation-iteration-count: {{{repeat|1}}}; |
|||
font-family: {{{font|var(--font-family-citizen-serif)}}}; |
|||
font-size: {{{fontsize|16px}}}; |
|||
color: {{{color|#ffffff}}}; |
|||
opacity: 0; |
|||
{{#ifeq: {{{glow|yes}}}|yes|text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}};|text-shadow: none;}}" |
|||
>{{{text|Insert Text Here}}}</span> |
|||
}} |
|||
</span> |
</span> |
||
</includeonly> |
</includeonly> |
||
| Line 154: | Line 101: | ||
"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, fading, position, direction, speed, and repeat.", |
||
"format": "inline" |
"format": "inline" |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
{{Appearing Text Effect |
{{Appearing Text Effect|align=left|text=Wow|fadeout=yes|fadefrom=left|repeat=infinite|speed=6s}} |
||
{{Appearing Text Effect|fadefrom=right|text=Oh mama|speed=6s|fadeout=yes|repeat=infinite|align=right}} |
|||
| text = Magic In Motion |
|||
{{Appearing Text Effect|repeat=infinite|fadeout=yes|text=Can you believe this shit?|speed=6s}} |
|||
| lettereffect = yes |
|||
| letterdelay = 0.1 |
|||
| fadeout = yes |
|||
| fadefrom = center |
|||
| color = gold |
|||
| fontsize = 24px |
|||
}} |
|||
</noinclude> |
</noinclude> |
||
Revision as of 07:18, April 16, 2025
Animates text to appear with optional delay, glow, fading, position, direction, speed, and repeat.
| 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 |
Wow
Oh mama
Can you believe this shit?