Clipping and masking are two commonly used operation in computer graphics which are used to hide some parts of elements and show other parts.
Clipping defines the region of an element that is visible. Masking is a method of ‘hiding’ a portion of an object based on another object. Masks are images; clips are always vector paths. Outside the path is transparent, inside the path is opaque.
Following is a simple example of using clipping and masking technique with CSS.
<img class=”” src=”Image-path” alt=”” title=””>
img {
width: 150px;
mask-image: -webkit-gradient(linear, left top, right bottom,color-stop(0.00, rgba(0,0,0,1)),color-stop(0.35, rgba(0,0,0,1)), color-stop(0.50, rgba(0,0,0,0)), color-stop(0.65, rgba(0,0,0,0)),
color-stop(1.00, rgba(0,0,0,0)));
}
If you are looking for a Website Design Services, UX/UI Web Design, Online Store Design, Ecommerce Website Design, Please Explore our Website Design Services! We also provide Website Redesign Services, Online Store Redesign and Ecommerce Website Redesign Services. For More Information, Please Visit Our Website Redesign Services!
Website Accessibility for Indian SMEs: Practical, Cost-Effective Approaches That Work A Practical Guide to Website…
Digital accessibility in India is no longer a formality. As regulatory scrutiny and digital adoption…
The Securities and Exchange Board of India (SEBI) has taken a landmark regulatory step to…
India’s digital ecosystem is one of the most linguistically diverse in the world. With 22…
Doing good always yield goodness around; isn’t it? And that’s why corporates make sure to…
Indian government agencies were mandated to comply with WCAG 2.0 Level A accessibility guidelines in…
This website uses cookies for the purposes of web analysis, marketing and optimization of user-experience. The cookies are processed when the website is accessed. When the website opens, please click on 'Close' to allow the use of cookies during your visit. Detailed information about the methods used, your rights to withdrawal, your right to object and other rights can be found in our Privacy Policy.
Privacy Policy