Open gertcuykens opened 10 years ago
I noticed the same issue, performance is particularly bad on firefox.
It looks like animating on the height
css property is the root cause (presumably because the browser needs to trigger a new layout on every frame).
I wonder if a similar effect could be achieved in a less janky way by animating using the transform
property instead (specifically translateY
).
http://demo.gcl-11.appspot.com/
The first click on menu 1, changing mode form waterfall-tall to waterfall has slide performance issues. The sliding back up is not as smooth as it should be, other slide effects are doing great. Maybe because of the un hidden of a page before the slide up?
(example is based on the tutorial example from polymer)