Template:Appearing Text Effect: Difference between revisions
More actions
LordSkorne7 (talk | contribs) No edit summary Tags: Manual revert 2017 source edit |
LordSkorne7 (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 3: | Line 3: | ||
<div class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}"> |
<div class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}"> |
||
<span |
<span |
||
class="appear-effect {{#ifeq: {{{fadeout|yes}}}|yes|fade-away}}" |
class="appear-effect {{#ifeq: {{{fadeout|yes}}}|yes|fade-away}} {{#ifeq: {{{style|descending}}}|descending-effect|emerging-effect}}" |
||
style=" |
style=" |
||
animation-duration: {{{speed|2s}}}; |
animation-duration: {{{speed|2s}}}; |
||
| Line 12: | Line 12: | ||
color: {{{color|#ffffff}}}; |
color: {{{color|#ffffff}}}; |
||
opacity: 0; |
opacity: 0; |
||
{{#ifeq: {{{glow|yes}}} |
{{#ifeq: {{{glow|yes}}}|yes|text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}};|text-shadow: none;}} |
||
" |
" |
||
>{{{text|Insert Text Here}}}</span> |
>{{{text|Insert Text Here}}}</span> |
||
</div> |
</div> |
||
</includeonly> |
</includeonly> |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"text": { "label": "Text", "type": "string", "default": "Insert Text Here" }, |
|||
"color": { "label": "Text Color", "type": "string", "default": "#ffffff" }, |
|||
"font": { "label": "Font Family", "type": "string", "default": "var(--font-family-citizen-serif)" }, |
|||
"fontsize": { "label": "Font Size", "type": "string", "default": "16px" }, |
|||
"glow": { "label": "Glow Effect", "type": "string", "default": "yes" }, |
|||
"glowcolor": { "label": "Glow Color", "type": "string", "default": "#ccc" }, |
|||
"align": { "label": "Text Alignment", "type": "string", "default": "center" }, |
|||
"position": { "label": "Screen Position", "type": "string", "default": "top: 0;" }, |
|||
"speed": { "label": "Animation Speed", "type": "string", "default": "2s" }, |
|||
"delay": { "label": "Delay", "type": "string", "default": "0s" }, |
|||
"repeat": { "label": "Repeat Count", "type": "string", "default": "1" }, |
|||
"fadeout": { "label": "Fade Out After", "type": "string", "default": "no" }, |
|||
"style": { |
|||
"label": "Animation Style", |
|||
"type": "string", |
|||
"default": "emerging", |
|||
"description": "emerging (from deep to near) or descending (from top to middle)" |
|||
} |
|||
}, |
|||
"description": "Creates a customizable appearing text effect that can emerge or descend with optional glow and fading.", |
|||
"format": "inline" |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
Revision as of 16:04, April 1, 2025
Creates a customizable appearing text effect that can emerge or descend with optional glow and fading.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Text | text | no description
| 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 | no description
| String | optional |
| Glow Color | glowcolor | no description
| String | optional |
| Text Alignment | align | no description
| String | optional |
| Screen Position | position | no description
| String | optional |
| Animation Speed | speed | no description
| String | optional |
| Delay | delay | no description
| String | optional |
| Repeat Count | repeat | no description
| String | optional |
| Fade Out After | fadeout | no description
| String | optional |
| Animation Style | style | emerging (from deep to near) or descending (from top to middle)
| String | optional |
Animates text to appear with optional delay, glow, fading, position, 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 |
I appear and then fade.