简体   繁体   English

如何从中心完成页面打开/关闭效果? (如 iPad)

[英]How to accomplish page open/close effect from center? (like ipad)

Im designing a Wordpress based site for a client and was wondering if it is possible to have the pages load then open/close from the center like the iPad?我正在为客户设计一个基于 Wordpress 的站点,并且想知道是否可以像 iPad 那样让页面加载然后从中心打开/关闭?

The site will essentially look like an iPad with icons inside of it that lead to the other wordpress pages.该站点本质上看起来像一个 iPad,其内部带有图标,可通向其他 wordpress 页面。 Is this effect possible?这种效果可能吗?

Thanks谢谢

I would definitely advise using css transitions otherwise it will be incredibly slow.我肯定会建议使用 css 转换,否则它会非常慢。
Just include some CSS and toggle the class.只需包含一些 CSS 并切换 class。

.app{
    width:100%;height:100%;position:absolute;
    -webkit-transform: scale(.0);
    -webkit-transition-timing-function: ease-out;
    -webkit-transition-duration: 500ms;
}
.app.opened{
    -webkit-transform: scale(1);
}

Example: http://jsfiddle.net/z4bP7/示例: http://jsfiddle.net/z4bP7/

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

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