How do I create a CSS shape in which each side is transformed separately.
Something like the shape in the below image.
Is that possible using CSS only without images?
How do I create a CSS shape in which each side is transformed separately.
Something like the shape in the below image.
Is that possible using CSS only without images?
use this i thing usefull for you.
and any another shape please visited this link http://www.css3shapes.com/
I don't think there is any way in CSS to pick and transform each side separately but you can achieve the shape in question by using perspective transforms (pure CSS).
Rotating the element with perspective along both X and Y axes sort of produces the effect of each side having a separate transformation. You can adjust the angles and the perspective setting to create the shape exactly as required.
Or, you could make use of the
clip-path
feature. Clip paths can be created either by using CSS alone or by using inline SVG. SVG clip paths have much better browser support than the CSS version.Have a look here for explanation see here. Basically you will need a rectangle and four triangles or a parallelogram and two rectangles. Depends what you want to achieve.
As with many CSS properties relating to margins, padding and borders, there are four individual properties - one for each corner of a box element - and one shorthand property. Each of the corner attributes will accept either one or two values. The border-radius property will accept up to two values in WebKit browsers and up to eight now in Firefox 3.5.
Demo