css-transforms

skew() function in depth

别来无恙 提交于 2020-07-30 02:44:25
问题 I really need to understand how skew(xdeg) function works all research does not seem to explain how the x angle affecting the other points and distorts it like that, I need to know if there any mathematical formula it or a way to be able to expect the result of using a specific degree. ps. I already read tons of docs which the best one of them was the DevDocs which say This transformation is a shear mapping (transvection) that distorts each point within an element by a certain angle in the

Border-image shows 9-slice lines when parent element is scaled using transfrom

◇◆丶佛笑我妖孽 提交于 2020-07-22 05:11:07
问题 I am using border-image property to create styled components with 9-slice. Also I am using css transform: scale(x) property to scale down/up my elements based on screen sizes. The issue I am running into is that my 9-slice component looks fine when scale is set to a whole number like 1, 2, 3... but if its a float then the border shows 9-slice lines/gaps and I am having hard time fixing it. I have tried setting different values for border-image-slice as well as the scale . Initially thought