Skip to content

Instantly share code, notes, and snippets.

@ringvold
Created August 22, 2014 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ringvold/c41e5bb353cfa8ee3e86 to your computer and use it in GitHub Desktop.
Save ringvold/c41e5bb353cfa8ee3e86 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.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_header_panel {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#section {
height: 1000px;
background: linear-gradient(rgb(214, 227, 231), rgb(173, 216, 230));
}
#core_animated_pages {
overflow: hidden;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
background-color: rgb(238, 238, 238);
}
#section1 {
background-color: rgb(61, 173, 30);
}
#section2 {
background-color: rgb(215, 209, 151);
}
</style>
<core-header-panel mode="standard" id="core_header_panel">
<core-toolbar id="core_toolbar" class="tall">
<core-icon-button id="core_icon_button" icon="menu"></core-icon-button>
<div id="div">Header</div>
</core-toolbar>
<section id="section">
<core-animated-pages id="core_animated_pages" notap>
<section id="section1" active></section>
<section id="section2">
</section>
<section id="section3">
</section>
</core-animated-pages>
</section>
</core-header-panel>
</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