Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Template:Appearing Text Effect: Difference between revisions

Template page
Content deleted Content added
No edit summary
Tags: Manual revert Reverted 2017 source edit
No edit summary
Tags: Manual revert 2017 source edit
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Appearing Text Effect/styles.css"/><div class="appear-effect {{yesno|{{yesno-no|{{{fadeout|}}}}}|yes=fade-away}} fade-{{{fadefrom|center}}} position-{{{position|{{{align|center}}}}}}" style="
<includeonly>
animation-duration: {{{speed|2s}}};
<templatestyles src="Appearing Text Effect/styles.css" />
animation-delay: {{{delay|0s}}};
<span class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}">
animation-iteration-count: {{{repeat|1}}};
<span
font-family: {{{font|var(--font-family-serif)}}};
class="appear-effect
{{#ifeq: {{{fadeout|yes}}}|yes|fade-away}}
font-size: {{{fontsize|16px}}};
{{#switch: {{{fadefrom|center}}}
color: {{{color|#ffffff}}};
{{yesno|{{yesno-yes|{{{glow|}}}}}|yes=text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}};|text-shadow: none;}}
| left = fade-ltr
">{{{text|Insert Text Here}}}</div></includeonly><noinclude>
| 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>
</includeonly>

<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"text": {
"text": {
"label": "Text",
"label": "Text",
"type": "string",
"type": "string",
"default": "Insert Text Here",
"default": "Insert Text Here",
"description": "The content that appears"
"description": "The content that appears"
},
},
"color": {
"color": {
"label": "Text Color",
"label": "Text Color",
"type": "string",
"type": "string",
"default": "#ffffff"
"default": "#ffffff"
},
},
"font": {
"font": {
"label": "Font Family",
"label": "Font Family",
"type": "string",
"type": "string",
"default": "var(--font-family-citizen-serif)"
"default": "var(--font-family-serif)"
},
},
"fontsize": {
"fontsize": {
"label": "Font Size",
"label": "Font Size",
"type": "string",
"type": "string",
"default": "16px"
"default": "16px"
},
},
"glow": {
"glow": {
"label": "Glow Effect",
"label": "Glow Effect",
"type": "string",
"type": "boolean",
"default": "yes",
"default": "true"
},
"description": "yes or no"
"glowcolor": {
},
"label": "Glow Color",
"glowcolor": {
"label": "Glow Color",
"type": "string",
"type": "string",
"default": "#ccc"
},
"default": "#ccc"
"speed": {
},
"label": "Animation Speed",
"align": {
"label": "Text Alignment",
"type": "string",
"type": "string",
"default": "2s",
"description": "How fast the appearance animation runs"
"default": "center",
},
"description": "left, center, right"
"delay": {
},
"label": "Delay",
"position": {
"label": "Screen Position",
"type": "string",
"type": "string",
"default": "0s",
"description": "Time before animation starts"
"default": "top: 0;",
},
"description": "e.g. top: 10px; left: 100px;"
"repeat": {
},
"label": "Repeat Count",
"speed": {
"label": "Animation Speed",
"type": "string",
"type": "string",
"default": "1",
"default": "2s",
"example": "infinite"
},
"description": "How fast the appearance animation runs"
"fadeout": {
},
"label": "Fade After Appear",
"delay": {
"label": "Delay",
"type": "boolean",
"type": "string",
"default": "false",
"description": "To fade away after appearing"
"default": "0s",
},
"description": "Time before animation starts"
"fadefrom": {
},
"label": "Fade Direction",
"repeat": {
"label": "Repeat Count",
"type": "string",
"type": "string",
"default": "center",
"description": "Direction of fade: center, left (left-to-right), or right (right-to-left)"
"default": "1",
},
"description": "e.g. 1, infinite"
"position": {
},
"label": "Position",
"fadeout": {
"type": "string",
"label": "Fade After Appear",
"type": "string",
"default": "center"
}
"default": "no",
},
"description": "yes to fade away after appearing"
"description": "Animates text to appear with optional delay, glow, fading, position, direction, speed, and repeat.",
},
"format": "inline"
"fadefrom": {
"label": "Fade Direction",
"type": "string",
"default": "center",
"description": "Direction of fade: center, left (left-to-right), or right (right-to-left)"
}
},
"description": "Animates text to appear with optional delay, glow, fading, position, direction, speed, and repeat.",
"format": "inline"
}
}
</templatedata>
</templatedata>

{{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}}
{{Appearing Text Effect|repeat=infinite|fadeout=yes|text=Can you believe this shit?|speed=6s}}
</noinclude>
</noinclude>

Latest revision as of 04:09, September 18, 2025

Animates text to appear with optional delay, glow, fading, position, direction, speed, and repeat.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texttext

The content that appears

Default
Insert Text Here
Stringoptional
Text Colorcolor

no description

Default
#ffffff
Stringoptional
Font Familyfont

no description

Default
var(--font-family-serif)
Stringoptional
Font Sizefontsize

no description

Default
16px
Stringoptional
Glow Effectglow

no description

Default
true
Booleanoptional
Glow Colorglowcolor

no description

Default
#ccc
Stringoptional
Animation Speedspeed

How fast the appearance animation runs

Default
2s
Stringoptional
Delaydelay

Time before animation starts

Default
0s
Stringoptional
Repeat Countrepeat

no description

Default
1
Example
infinite
Stringoptional
Fade After Appearfadeout

To fade away after appearing

Default
false
Booleanoptional
Fade Directionfadefrom

Direction of fade: center, left (left-to-right), or right (right-to-left)

Default
center
Stringoptional
Positionposition

no description

Default
center
Stringoptional
Wow
Oh mama
Can you believe this shit?