简体   繁体   English

定价表调整大小感觉就像使用html5和/或css的mac基座

[英]Pricing table resize feel like the mac dock using html5 and/or css

I have an idea that I have started building a pricing table that Ideally would feel very similar to the way magnification of the Mac OSX dock would feel (super fluid), but I'm wondering if there is a best practice for doing stuff like this. 我的想法是,我已经开始构建一个定价表,理想情况下,该定价表将与Mac OSX扩展坞的放大倍感(超级流畅)非常相似,但是我想知道是否有进行此类操作的最佳实践。

To give you an idea of where we are starting, here is what I have so far: http://tmp.responsibid.com/#features 为了让您大致了解我们的起点,这是到目前为止我所拥有的: http : //tmp.responsibid.com/#features

Any help or pointing to the right resources would be fantastic! 任何帮助或指向正确的资源将是极好的!

You need to add this css on the hover and it will work fine: 您需要在悬停时添加此CSS,它将正常工作:

-webkit-transform: scale(2);
-moz-transform: scale(2);
-o-transform: scale(2);
-ms-transform: scale(2);
transform: scale(2);

Also add css transitions: 还添加CSS过渡:

-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;

Though you will have to have it in a container then vertically align it then add overflow hidden to the container and give it a set height as it will not only expand it how you want width ways but also length ways 尽管您必须将其放入容器中,然后将其垂直对齐,然后将隐藏的溢出物添加到容器中,并为其设置一个设定的高度,因为它不仅可以按您希望的宽度方式进行扩展,还可以按长度方式

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

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