Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I 'hide' content off screen on the iPhone?
    primarykey
    data
    text
    <p>I'm building a responsive web app where the mobile/skinny part of it hides various panels off screen. I have found that positioning these items off to the right-hand side i.e. <code>left: 100%</code> 'hides' does not hide the item correctly because mobile safari still shows it even though it is positioned outside the <code>html</code> and <code>body</code> areas.</p> <p>I want to slide these hidden items in by adding this class: <code>.focused</code> (using a jQuery click event), which changes the <code>left</code> value to <code>0</code>. The class has a CSS transform applied to it which handles the animation too.</p> <p>While testing, I have found that positioning the hidden panels off to the left-hand side work correctly. </p> <p><strong>Can anyone offer a better solution to the one I have?</strong> I really need the hidden content to be positioned on the right-hand side.</p> <p>Here's some CSS to show you what's happening:</p> <pre><code>#hidden-item { position: absolute; top: 50px; left: 100%; width: 100%; -webkit-transition: all 0.5s ease-in; -moz-transition: all 0.5s ease-in; -ms-transition: all 0.5s ease-in; -o-transition: all 0.5s ease-in; transition: all 0.5s ease-in; -webkit-backface-visibility: hidden; -moz-backface-visibility: hidden; -ms-backface-visibility: hidden; backface-visibility: hidden; } #hidden-item.focused { left: 0; -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload