Skip to content

Instantly share code, notes, and snippets.

@itsDineth
Created July 6, 2014 19:11
Show Gist options
  • Save itsDineth/7f81479f7aee21a4cc53 to your computer and use it in GitHub Desktop.
Save itsDineth/7f81479f7aee21a4cc53 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;
}
#paper_tabs {
width: 480px;
color: rgb(255, 255, 255);
box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
left: 670px;
top: 530px;
position: absolute;
background-color: rgb(0, 188, 212);
}
#core_animated_pages {
width: 420px;
height: 582px;
overflow: hidden;
left: 640px;
top: 670px;
position: absolute;
background-color: rgb(238, 238, 238);
}
</style>
<paper-tabs selected="{{ $.core_pages.selected }}" 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>
<core-animated-pages transitions="slide-from-right" selected="{{ $.paper_tabs.selected }}" selectedindex="0" notap id="core_animated_pages">
<section id="section" layout horizontal center center-justified active> fdfd</section>
<section id="section1" active> 4154</section>
<section id="section2"> section ... 3</section>
</core-animated-pages>
</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