Skip to content

Instantly share code, notes, and snippets.

@JohnsonChung
Last active August 29, 2015 14:11
Show Gist options
  • Save JohnsonChung/80d27b3f9ef2439ac8a6 to your computer and use it in GitHub Desktop.
Save JohnsonChung/80d27b3f9ef2439ac8a6 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">
<polymer-element name="my-element">
<template>
<style>
#hero1 {
position: static;
top: 240px;
left: 710px;
width: 300px;
height: 300px;
background-color: red;
}
#hero2 {
position: absolute;
top: 380px;
left: 960px;
width: 300px;
height: 300px;
background-color: orange;
}
#bottom1, #bottom2 {
position: absolute;
bottom: 0px;
top: 0px;
left: 0px;
height: 50px;
}
#bottom1 {
background-color: blue;
}
#bottom2 {
background-color: green;
}
#core_animated_pages {
position: static;
}
</style>
<core-animated-pages transitions="hero-transition cross-fade" lastselected="0" selectedindex="0" notap id="core_animated_pages">
<section id="page1" active>
<div id="hero1" hero-id="hero" hero></div>
<div id="bottom1" cross-fade></div>
</section>
<section id="page2">
<div id="bottom2" cross-fade></div>
<div id="hero2" hero-id="hero" hero></div>
</section>
</core-animated-pages>
</template>
<script>
Polymer({
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment