सीएसएस मुखौटा-मोड संपत्ति
उदाहरण
बता दें कि मास्क लेयर इमेज को ल्यूमिनेन्स मास्क के रूप में माना जाता है:
.mask1 {
-webkit-mask-image: url(w3logo.png);
mask-image: url(w3logo.png);
-webkit-mask-size: 70%;
mask-size: 70%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
mask-mode: luminance;
}
परिभाषा और उपयोग
संपत्ति निर्दिष्ट करती है कि क्या मुखौटा परत की mask-mode
छवि को ल्यूमिनेन्स मास्क या अल्फा मास्क के रूप में माना जाना चाहिए।
डिफ़ॉल्ट मान: | मैच-स्रोत |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.maskMode="alpha" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
mask-mode | Not supported | Not supported | 53.0 | Not supported | Not supported |
सीएसएस सिंटेक्स
mask-mode:
match-source|luminance|alpha|initial|inherit;
सम्पत्ति की कीमत
Value | Description |
---|---|
match-source | If the mask-image property is an image (an image URL or a gradient), set mask-mode to alpha. If the mask-image property is an SVG <mask> element, use the <mask> element's mask-type property. This is default. |
luminance | Use the luminance values of the mask image as the mask values |
alpha | Use the alpha values of the mask image as the mask values |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
संबंधित पृष्ठ
सीएसएस संदर्भ: मुखौटा-छवि संपत्ति
सीएसएस संदर्भ: मुखौटा-मूल संपत्ति
सीएसएस संदर्भ: मुखौटा-स्थिति संपत्ति
CSS संदर्भ: मास्क-रिपीट प्रॉपर्टी
सीएसएस संदर्भ: मुखौटा-आकार की संपत्ति
सीएसएस ट्यूटोरियल: सीएसएस मास्किंग