Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

clip: true for non-follower fixes #34

  • Loading branch information...
Prinzhorn committed May 29, 2018
1 parent c3f71cf commit e45c5208643f228a15389dca60c69f34c506fb1b
Showing with 6 additions and 2 deletions.
  1. +2 −1 examples/sparkling-gallery-pages.html
  2. +4 −1 src/behaviors/LayoutBehavior.js
@@ -67,7 +67,8 @@
</head>
<body>
<scroll-meister fadein scroll guides-layout="guides: left 0% 2vmin, right 100% 2vmin, center 50%;">
<element-meister layout="height: 95vh;" media="ratio: 1920 / 1080">
<element-meister layout="height: 95vh;" media="ratio: 1920 / 1080" interpolate="y: top 0, top 100vh 20;"
transform="">
<img src="assets/images/photo-1426170042593-200f250dfdaf.jpg" width="1920" height="1080" />
</element-meister>
<element-meister layout="guides: left right; mode: follow; spacing: 0 5vh;" interpolate="opacity: top 1, bottom 100vh 0" transform>
@@ -154,7 +154,10 @@ export default class LayoutBehavior extends Behavior {

if (this.props.clip) {
overflow = 'hidden';
height = this.layout.clipRect.height;

if (this.layout.clipRect) {
height = this.layout.clipRect.height;
}
}

if (this.props.hidden) {

0 comments on commit e45c520

Please sign in to comment.
You can’t perform that action at this time.