vguillou / parallax-element

A Polymer element allowing to declaratively create simple vertical or horizontal parallax scrolling effects, working on desktop and mobile. It features built-in deactivation of the effect in browsers (IE) that do not fully support the CSS transformations leveraged to achieve the parallax scrolling.
MIT License
25 stars 2 forks source link

Compatibility with paper-elements #7

Open Baddaboo opened 8 years ago

Baddaboo commented 8 years ago

I'm trying to use this within a paper-header-panel, but I'm not sure if I'm doing something wrong or if it was never designed to be used with a header-panel in the first place. What happens is that parallax-element creates a nested scroll view within the header-panel's scroll view

vguillou commented 8 years ago

Hello, thanks for the feedback.

Yes, using it with header-panels element requires a bit of work. Did you take a look at this demo ? Here are the links to the source code : https://github.com/vguillou/parallax-element/blob/master/demo/demo-paper-scroll-header-panel.html https://github.com/vguillou/parallax-element/blob/master/demo/demo-scroll-panel-element.html

Does that answer your question ?