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
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 3: Line 3:
<span class="appear-effect-wrapper appear-{{{align|center}}}" style="{{{position|top: 0;}}}">
<span 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}}
style="
animation-duration: {{{speed|2s}}};
{{#switch: {{{fadefrom|center}}}
| left = fade-ltr
animation-delay: {{{delay|0s}}};
| right = fade-rtl
animation-iteration-count: {{{repeat|1}}};
| center = fade-center
font-family: {{{font|var(--font-family-citizen-serif)}}};
}}"
font-size: {{{fontsize|16px}}};
style="
color: {{{color|#ffffff}}};
animation-duration: {{{speed|2s}}};
opacity: 0;
animation-delay: {{{delay|0s}}};
{{#ifeq: {{{glow|yes}}}|yes|text-shadow: 0 0 6px {{{glowcolor|white}}}, 0 0 10px {{{glowcolor|#ccc}}};|text-shadow: none;}}
animation-iteration-count: {{{repeat|1}}};
"
font-family: {{{font|var(--font-family-citizen-serif)}}};
>{{{text|Insert Text Here}}}</span>
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 89: Line 95:
"default": "no",
"default": "no",
"description": "yes to fade away after appearing"
"description": "yes to fade away after appearing"
},
"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, speed, and repeat.",
"description": "Animates text to appear with optional delay, glow, fading, position, direction, speed, and repeat.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
{{Appearing Text Effect|text=wwwwwwwwwww|repeat=infinite|fadeout=yes}}
</noinclude>
</noinclude>

Revision as of 05:43, April 16, 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-citizen-serif)
Stringoptional
Font Sizefontsize

no description

Default
16px
Stringoptional
Glow Effectglow

yes or no

Default
yes
Stringoptional
Glow Colorglowcolor

no description

Default
#ccc
Stringoptional
Text Alignmentalign

left, center, right

Default
center
Stringoptional
Screen Positionposition

e.g. top: 10px; left: 100px;

Default
top: 0;
Stringoptional
Animation Speedspeed

How fast the appearance animation runs

Default
2s
Stringoptional
Delaydelay

Time before animation starts

Default
0s
Stringoptional
Repeat Countrepeat

e.g. 1, infinite

Default
1
Stringoptional
Fade After Appearfadeout

yes to fade away after appearing

Default
no
Stringoptional
Fade Directionfadefrom

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

Default
center
Stringoptional