Skip to content

Instantly share code, notes, and snippets.

@tomrenn
Created July 22, 2014 19:44
Show Gist options
  • Save tomrenn/c9f2e3711a0f38c68593 to your computer and use it in GitHub Desktop.
Save tomrenn/c9f2e3711a0f38c68593 to your computer and use it in GitHub Desktop.
designer
<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="../paper-input/paper-input.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.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;
left: 220px;
top: 50px;
position: absolute;
background-color: rgb(238, 238, 238);
}
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 220px;
top: 0px;
position: absolute;
background-color: rgb(0, 188, 212);
}
</style>
<core-animated-pages transitions="slide-from-right" selected="{{ $.paper_tabs.selected }}" selectedindex="1" notap id="core_animated_pages">
<section id="section" layout horizontal center center-justified>
<paper-input label="Type something..." id="paper_input" slide-from-right></paper-input>
</section>
<section id="section1" active>
</section>
<section id="section2">
</section>
</core-animated-pages>
<paper-tabs selected="1" selectedindex="1" id="paper_tabs">
<paper-tab id="paper_tab">ITEM ONE</paper-tab>
<paper-tab id="paper_tab1" active>ITEM TWO</paper-tab>
<paper-tab id="paper_tab2">ITEM THREE</paper-tab>
<paper-tab id="paper_tab3">ITEM FOUR</paper-tab>
<paper-tab id="paper_tab4">ITEM FIVE</paper-tab>
</paper-tabs>
</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