简体   繁体   English

形状随着宽度的增加

[英]Shape with increasing width

I would like to create a shape, which starts with a certain width and then increases to the end. 我想创建一个形状,该形状以一定的宽度开始,然后增加到结束。 Currently I have this shape here: 目前,我的形状如下:

在此处输入图片说明

Generated by this document . 由本文件生成。 How can I style the shape, that it starts with width x and gets bigger and bigger until it reaches widtht y ? 我如何样式化形状,使其从宽度x开始并逐渐变大,直到达到宽度y

Besides that, is it also possible to simply rotate a shape with CSS? 除此之外,是否还可以使用CSS轻松旋转形状?

Yes it is possible with CSS3 Animation and Transform : 是的, CSS3 Animation and Transform可以实现

Heres an example I made which makes the shape grow in width and spin around endlessly: 这是我制作的一个示例,它使形状变宽并不断旋转:

DEMO DEMO

Heres a demo showing how you can make the shape grow until a certain width is met: 这是一个演示,演示了如何使形状增长直到满足特定宽度:

DEMO DEMO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM