Skip to content

Instantly share code, notes, and snippets.

@shanejonas
Created August 7, 2014 01:42
Show Gist options
  • Select an option

  • Save shanejonas/398461349d38c77085b4 to your computer and use it in GitHub Desktop.

Select an option

Save shanejonas/398461349d38c77085b4 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
background-color: rgb(238, 238, 238);
}
#svg {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
#svg1 {
pointer-events: none;
width: 24px;
height: 24px;
display: block;
}
#core_card {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#core_card1 {
width: 300px;
height: 300px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-bottom-left-radius: 2px;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(255, 255, 255);
}
#section1 {
width: 420px;
height: 630px;
border: 5px solid rgb(204, 204, 204);
left: 160px;
top: 140px;
position: absolute;
}
#paper_tabs1 {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
</style>
<section id="section1" layout vertical>
<paper-tabs noink nobar selected="1" selectedindex="1" id="paper_tabs1">
<paper-tab id="paper_tab2">ITEM ONE</paper-tab>
<paper-tab id="paper_tab3" active>ITEM TWO</paper-tab>
</paper-tabs>
<section id="section3" flex relative>
<core-animated-pages transitions="cross-fade-all" selected="{{ $.paper_tabs1.selected }}" selectedindex="{{ $.paper_tabs1.selectedIndex }}" notap id="core_animated_pages" layout center center-justified>
<section id="section2" layout horizontal center center-justified active>
<core-card id="core_card1" layout vertical>
<section id="section" layout horizontal center center-justified>
<core-card id="core_card" layout vertical center center-justified>page1</core-card>
</section>
</core-card>
</section>
</core-animated-pages>
</section>
</section>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment