GithubHelp home page GithubHelp logo

page-switching-like-phone-app's Introduction

Page-switching-like-Phone-App

在web上实现切换页面像手机APP切换一样

图片加载失败

page-switching-like-phone-app's People

Contributors

jethro2002 avatar

page-switching-like-phone-app's Issues

页面内属性还不支持自动缩小,正在制作

目前在我的本地项目中,字体已经可以随着页面缩小而缩小,达到视觉上的体验。

但页面内的其他元素,例如img,div,或者宽度/位置属性,例如top,margin-top,padding-top...目前需要使用百分比单位来实现整体化。

我会在未来增加自动化机制。

案例:http://lujiechao.cn/
↑建议移动端设备大小访问

如果内容长度大于容器,则会出现切换后定位错误问题

这是由于在页面切换后,容器高度发生改变而导致的,目前的解决方法是通过cookie记录之前浏览到的位置,然后在切换回来的时候定位到该位置。

坏处:
需要在绑定链接的时候除了输入切换至的页面外,还需要输入当前页面ID。

关于移动端设备掉帧现象

这是不可避免的,因为变换的css属性太多的原因。

不过我会尽量尝试缩短代码以及简化步骤来改善。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.