Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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_animated_pages {
- width: 100%;
- height: 100%;
- overflow: hidden;
- left: 0px;
- top: 0px;
- position: absolute;
- background-color: rgb(238, 238, 238);
- }
- #core_card {
- border-radius: 2px;
- box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
- z-index: 1;
- margin: 50px;
- position: static;
- background-color: rgb(255, 255, 255);
- }
- #h1 {
- position: relative;
- margin: 50px;
- background-color: rgb(255, 255, 255);
- }
- #section {
- position: absolute;
- }
- #intro1 {
- height: 300px;
- background-color: rgb(244, 67, 54);
- }
- #intro2 {
- height: 300px;
- background-color: rgb(240, 98, 146);
- }
- </style>
- <div id="intro1">
- <h1>aa</h1>
- </div>
- <div id="intro2">
- <h1>aa</h1>
- </div>
- <core-animated-pages selectedindex="0" notap id="core_animated_pages">
- <section id="section" layout horizontal center center-justified active>
- <core-card id="core_card" start-justified>
- <h1 id="h1" vertical layout start>Google I/O is for developers—the creative coders who are building what's next. Together we'll explore the latest in tech, mobile & beyond.</h1>
- </core-card>
- </section>
- <section id="section1">
- </section>
- <section id="section2">
- </section>
- </core-animated-pages>
- </template>
- <script>
- Polymer({
- });
- </script>
- </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement