|
An image can be made visible or invisible using CSS display properties and Javascript.
After positioning the image on the page, create a function to trim parts or all of the image. Clip:rect() style defines a rectangluar area. It uses four coordinates to specify the area being hidden or clipped. This example works with javascript function to clip parts of the image.
|