polymer core-animated-pages inside a list
To keep the items from overlapping you need to make sure that your element has a height. You can do this by using layout attributes on the body itself and your custom element instance.
<body fullbleed layout vertical>
<polymer-element name="x-foo">
<template>
<template repeat="{{item in items}}">
<div layout vertical flex>
<core-animated-pages layout vertical flex>
<section>
{{item.artist}}
</section>
</core-animated-pages>
</div>
</template>
</template>
<script>
Polymer({
items: [
{
artist: 'Some dude'
},
{
artist: 'Some other dude'
}
]
});
</script>
</polymer-element>
<x-foo layout vertical flex></x-foo>
</body>
Example jsbin
Polymer Chip-to-Card Pattern with core-animated-pages and a Long List
To make the transitions work smoothly, you need to first disable the core-animated-pages
from scrolling.
core-animated-pages {
overflow: hidden;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
And then of course you need to set the list section
to be scrollable again.
<section style="overflow:scroll">
<div class="chip-container" hero-p on-tap="{{transition}}">
That's it! Please see this JSFiddle for reference.
Unable to apply core-animated pages transition with JS
I see you are importing slide-from-right.html, but you then use transitions="fade-scale" (which is not defined as a core-animated-pages transition). You instead need to import each transition you wish to use, and separate them by spaces in the transitions list:
<link rel="import" href="components/core-animated-pages/transitions/cross-fade.html">, <link rel="import" href="components/core-animated-pages/transitions/scale-up.html">,
...
<core-animated-pages selected="{{ sel }}" transitions="cross-fade scale-up">
Related Topics
How to Include SCSS File in HTML
CSS and Printing:Keep Block of Text Together
CSS :After Pseudo Element Not Showing Up on <Img>
CSS Font-Family Support Dropped for <Select> in Firefox
Edit Microsoft Chatbot UI Design
CSS Resize Property - Change Resize Icon Properties
Inject a CSS File into a Webpage via Firefox Extension
How to Make Iframe Respect Z-Index in Ie
Increment a Variable in Less CSS
Normalized CSS, Option in Jsfiddle, How to Add It to Document
Scale Inline Svg Symbol Referenced with <Use>
Hide Overflow on Elements with Fixed Position
Select Element Based on Child Class
How to Use CSS Attribute Selector for an Svg Element with Namespaced Attribute Href