Skip to content

Instantly share code, notes, and snippets.

@realyze
Created July 27, 2018 00:20
Show Gist options
  • Save realyze/50a9cdc7db562ca3ee5f6e98e4762f10 to your computer and use it in GitHub Desktop.
Save realyze/50a9cdc7db562ca3ee5f6e98e4762f10 to your computer and use it in GitHub Desktop.
<html>
<body>
<div style="overflow: hidden; position: relative;">
<div style="background: yellow; height: 100%; overflow-y: scroll;">
<div style="height: 10000px; display: flex; justify-content: flex-end;">
<div style="height: 100px; width: 100px; background: red; transform: translate3d(0, 0, 0);">foo</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment