这是我走到这一步:http://jsfiddle.net/xj4hb2kt/4/从中扩大div的原始位置,以适应屏幕
.expandable
{
position: fixed;
width: 100px;
height: 80px;
background-color: black;
-webkit-transition: all 1200ms ease-in-out;
-moz-transition: all 1200ms ease-in-out;
-o-transition: all 1200ms ease-in-out;
top: 60px;
left: 100px;
}
.expandable-expanded
{
position: fixed;
width: 100%;
height: 100%;
-webkit-transform: scale(100%);
transform: scale(100%);
z-index: 5;
top: 0px;
left: 0px;
}
一切完美,但我不能使用“扩张”类“固定”的位置。没有任何方法可以在不将“消耗性”位置设置为固定的情况下执行此操作?谢谢!
你想要一个纯粹的CSS解决方案还是使用'.animate()'选项? – Tom 2015-02-24 14:14:11
也有动画作品。你能检查我更新的小提琴,也许这可能没有动画?谢谢! – Kristian 2015-02-24 14:17:55