Skip to content

Instantly share code, notes, and snippets.

@mrjambo
Last active August 29, 2015 14:14
Show Gist options
  • Save mrjambo/faa7acc6f28c8c81431a to your computer and use it in GitHub Desktop.
Save mrjambo/faa7acc6f28c8c81431a 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">
<link rel="import" href="../core-animated-pages/transitions/slide-from-right.html">
<polymer-element name="my-element">
<template>
<style>
#section {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
}
#core-animated-pages {
position: absolute;
top: 48px;
right: 0px;
bottom: 0px;
left: 0px;
}
#paper_tabs {
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
background-color: rgb(0, 188, 212);
}
#div1 {
background-color: rgb(90, 181, 23);
}
#div2 {
background-color: rgb(20, 128, 186);
}
#div3 {
background-color: rgb(129, 3, 109);
}
#div4 {
background-color: rgb(237, 3, 10);
}
</style>
<section id="section1" layout vertical is="auto-binding">
<paper-tabs selected="{{ selected }}" selectedindex="0" id="paper_tabs" horizontal center layout>
<paper-tab id="paper_tab" inline flex center-center horizontal layout active>Polymer</paper-tab>
<paper-tab id="paper_tab1" inline flex center-center horizontal layout>is</paper-tab>
<paper-tab id="paper_tab2" inline flex center-center horizontal layout>so</paper-tab>
<paper-tab id="paper_tab3" inline flex center-center horizontal layout>awesome!</paper-tab>
</paper-tabs>
<core-animated-pages transitions="slide-from-right" selected="{{ selected }}" selectedindex="0" notap id="core-animated-pages" lastselected="1" horizontal layout one flex>
<section id="chat" active one flex vertical layout>
<div id="div1" layout vertical center center-justified one flex></div>
</section>
<section id="section4" one flex horizontal layout>
<div id="div2" layout vertical center center-justified one flex></div>
</section>
<section id="section5" one flex horizontal layout>
<div id="div3" layout vertical center center-justified one flex></div>
</section>
<section id="section6" one flex horizontal layout>
<div id="div4" layout vertical center center-justified one flex></div>
</section>
</core-animated-pages>
</section>
</template>
<script>
Polymer({
selected: 0
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment