text-fill-color ගුණය
text-fill-color property ගුණය
අකුරු පෙරණ වර්ණය හෝ ඒවායේ පාරදෘෂ්යතාව
transparent අගය භාවිතයෙන් තීරණය කරයි.
වාක්ය රචනය
තෝරන්නා {
text-fill-color: වර්ණය හෝ transparent;
}
නිදර්ශනය
අපගේ පෙළට ප්රාදේශීය වර්ණ පිරවුමක් පාරදෘෂ්යතාව සමඟ අපි ලබා දෙමු:
<p>
This is a text.
</p>
body {
width: 200px;
height: 100px;
}
p {
-webkit-text-fill-color: transparent;
text-fill-color: transparent;
font-size: 26px;
background: linear-gradient(#c42222, #ffef5e);
-webkit-background-clip: text;
background-clip: text;
}
:
මෙයද බලන්න
-
text-strokeගුණය,
පෙළේ ඉරිගැස්ම ලබා දෙයි -
text-stroke-colorගුණය,
පෙළේ ඉරිගැස්මට වර්ණය ලබා දෙයි -
text-stroke-widthගුණය,
පෙළේ ඉරිගැස්මේ thickness ලබා දෙයි