【发布时间】:2016-07-29 12:55:05
【问题描述】:
我正在尝试在段落文本上实现以下动画:
目的是根据左侧的形状为文本的边界设置动画。这是我尝试过的,但我无法弄清楚文本形状的过渡:
.mainDiv {
width: 600px;
margin: 0px auto;
border: solid 1px #000;
padding: 10px;
min-height: 200px;
}
.element {
width: 200px;
height: 200px;
background: #e3f5f1;
float: left;
margin-right: 5px;
}
.textElement {
width: 395px;
float: left;
}
<div class="mainDiv">
<div class="element"></div>
<div class="textElement">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus Page Maker including versions of Lorem Ipsum, and more recently with desktop publishing software.
</div>
</div>
我对CSS过渡和动画了解不多,希望能得到一些帮助。
【问题讨论】:
-
需要支持哪些浏览器?
-
Chrome 和火狐 :)
标签: css css-transitions css-animations css-shapes