CSS3 Image Mask


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. img {
  2. -webkit-mask-image:
  3. -webkit-gradient(
  4. linear, left bottom, left top,
  5. from( rgba(0,0,0,0) ), to( rgba(0,0,0,1) )
  6. );
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.