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

Template:Metallic Shine 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 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="Metallic Shine Effect/styles.css" />
<templatestyles src="Metallic Shine/styles.css" />
<span
<span
class="metallic-shine-text shiny-{{{align|center}}}"
class="metallic-shine-text shiny-{{{align|center}}}"
Line 6: Line 6:
font-size: {{{size|24px}}};
font-size: {{{size|24px}}};
font-family: {{{font|var(--font-family-citizen-serif)}}};
font-family: {{{font|var(--font-family-citizen-serif)}}};
color: {{{color|transparent}}};
color: transparent;
background-image: linear-gradient(
to right,
{{{shinecolor|#aaa}}} 20%,
#fff 40%,
{{{shinecolor|#aaa}}} 60%
);
animation-duration: {{{duration|2s}}};
animation-duration: {{{duration|2s}}};
animation-delay: {{{delay|0s}}};
animation-delay: {{{delay|0s}}};
Line 46: Line 52:
"description": "Font to use for the text"
"description": "Font to use for the text"
},
},
"color": {
"shinecolor": {
"label": "Text Color",
"label": "Shine Color",
"type": "string",
"type": "string",
"default": "transparent",
"default": "#aaa",
"description": "Color of the base text (transparent recommended for full shine)"
"description": "Color used in the animated shine effect"
},
},
"glow": {
"glow": {
"label": "Enable Shine Shadow",
"label": "Enable Shine Glow",
"type": "string",
"type": "string",
"default": "yes",
"default": "yes",
"description": "yes or no"
"description": "yes or no"
},
"shinecolor": {
"label": "Shine Color",
"type": "string",
"default": "#cccccc",
"description": "Color of the shine if enabled"
},
},
"shineintensity": {
"shineintensity": {
Line 89: Line 89:
}
}
},
},
"description": "Applies an animated metallic shine effect to inline text with options for shine shadow color and intensity, font, size, color, duration, delay, and repeat.",
"description": "Applies an animated metallic shine effect to inline text, with customizable shine color, glow intensity, font, and animation settings. Fully compatible with MediaWiki.",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>

</noinclude>
</noinclude>

Revision as of 15:29, April 16, 2025


Applies an animated metallic shine effect to inline text, with customizable shine color, glow intensity, font, and animation settings. Fully compatible with MediaWiki.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texttext

no description

Default
Shiny Text
Stringoptional
Text Alignmentalign

left, center, or right

Default
center
Stringoptional
Font Sizesize

Font size (e.g. 24px)

Default
24px
Stringoptional
Font Familyfont

Font to use for the text

Default
var(--font-family-citizen-serif)
Stringoptional
Shine Colorshinecolor

Color used in the animated shine effect

Default
#aaa
Stringoptional
Enable Shine Glowglow

yes or no

Default
yes
Stringoptional
Shine Intensityshineintensity

How strong the shine glow appears (e.g. 4px, 10px)

Default
6px
Stringoptional
Animation Durationduration

Time for one full shine cycle

Default
2s
Stringoptional
Animation Delaydelay

Delay before the shine animation starts

Default
0s
Stringoptional
Repeat Countrepeat

Number of times the animation should repeat (e.g. 1, infinite)

Default
infinite
Stringoptional