Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1752)

Unified Diff: chrome/browser/resources/md_user_manager/user_manager_pages.html

Issue 1947393002: MD User Manager: page transition animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-accessibility
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_user_manager/user_manager_pages.html
diff --git a/chrome/browser/resources/md_user_manager/user_manager_pages.html b/chrome/browser/resources/md_user_manager/user_manager_pages.html
index d8ce1244cd255e841363c7d7def299e619adb613..cda9ca8e4f9e6363a1acc6c476f9a3b0d2362264 100644
--- a/chrome/browser/resources/md_user_manager/user_manager_pages.html
+++ b/chrome/browser/resources/md_user_manager/user_manager_pages.html
@@ -2,8 +2,9 @@
<link rel="import" href="chrome://md-user-manager/supervised_user_create_confirm.html">
<link rel="import" href="chrome://md-user-manager/supervised_user_learn_more.html">
<link rel="import" href="chrome://resources/html/polymer.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-from-left-animation.html">
-<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/slide-right-animation.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-in-animation.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-out-animation.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animated-pages.html">
<dom-module id="user-manager-pages">
@@ -13,43 +14,43 @@
height: 100%;
}
- neon-animated-pages > div {
+ neon-animatable {
display: flex;
justify-content: center;
}
/* neon-animated-pages does not automatically hide what's under content */
- neon-animated-pages > div:not(.iron-selected) > ::content > * {
+ neon-animatable:not(.iron-selected) > ::content > * {
display: none !important;
}
</style>
<neon-animated-pages id="animatedPages" attr-for-selected="id"
- selected="[[selectedPage_]]" entry-animation="slide-from-left-animation"
- exit-animation="slide-right-animation">
- <div id="create-user-page">
+ selected="[[selectedPage_]]" entry-animation="fade-in-animation"
+ exit-animation="fade-out-animation">
+ <neon-animatable id="create-user-page">
<template is="dom-if"
if="[[isPageVisible_(selectedPage_, 'create-user-page')]]" restamp>
<create-profile></create-profile>
</template>
- </div>
- <div id="user-pods-page">
- <content></content>
- </div>
- <div id="supervised-learn-more-page">
+ </neon-animatable>
+ <neon-animatable id="user-pods-page">
+ <content></content>
+ </neon-animatable>
+ <neon-animatable id="supervised-learn-more-page">
<template is="dom-if"
if="[[isPageVisible_(selectedPage_,
'supervised-learn-more-page')]]">
<supervised-user-learn-more></supervised-user-learn-more>
</template>
- </div>
- <div id="supervised-create-confirm-page">
+ </neon-animatable>
+ <neon-animatable id="supervised-create-confirm-page">
<template is="dom-if"
if="[[isPageVisible_(selectedPage_,
'supervised-create-confirm-page')]]">
<supervised-user-create-confirm profile-info="[[pageData_]]">
</supervised-user-create-confirm>
</template>
- </div>
+ </neon-animatable>
</neon-animated-pages>
</template>
<script src="chrome://md-user-manager/user_manager_pages.js"></script>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698