How to push an element outside the screen without the browser just expanding the viewport?

前端 未结 3 1190
暖寄归人
暖寄归人 2020-12-24 14:37

Some times it\'s nice to be able to slide things out of the viewport to hide them, for example when making hide-able sidebars or panels. But when I push something past the r

3条回答
  •  独厮守ぢ
    2020-12-24 15:29

    That is a bad idea to wrap something invisible, because you should know why your will move it outside screen, it is not just for hidden, if just for hidden there will be a lot of good ways to do. To move outside the screen, the most benefit is when you deal with large picture,video,or other component like News Feed in iframe. That will cache render for it, make significante effective improvement.

提交回复
热议问题