CSS Clip Path-Awesome trick to create mind blowing web pages
Hey folk, so today i'll tell the you to most awesome trick to crate super sexy front end, i'm gone tell you about a property of CSS to shape the web page or image as per our need.
Suppose i have a page and want's to change some side of that page then does it make our page bit stylish?? yes, it will.
Or if i want to change the shape of image as per my convenience, so in this article we'll learn about clip path using polygon method. As we know that polygon is a close figure which has finite number of side so we can clip our page image or text using clipping.
Introduction: clip path in CSS give you rights to make changes in the content by clipping it in you're way, like cutting a piece of paper and made a butterfly.
So in this article i'll clip a image to give a very basic idea of how clipping work.
Clipping a picture using CSS |
So in above image i clipped the image from mid of left side.
HOW : CSS CODE
clip-path : polygon(/*values in percentage or pixel and seperated through (,) comma*/);
ACTUAL CODE:
VSCODE-CSS-CODE |
Comments
Post a Comment