summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-09 18:57:39 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-09 18:57:39 +0000
commit6e575772033fb8ad816b805fbaa95bde2ce18985 (patch)
tree5d6f7b4694a09948338aa1605e91f687e0308f30
parentba0d6ecd82955c7511b2394abcaac4f57be2f1c0 (diff)
downloadchromium_src-6e575772033fb8ad816b805fbaa95bde2ce18985.zip
chromium_src-6e575772033fb8ad816b805fbaa95bde2ce18985.tar.gz
chromium_src-6e575772033fb8ad816b805fbaa95bde2ce18985.tar.bz2
Fade in the demo login UI's logo and text.
This CL fades in the Chrome logo on the demo login UI after 1s and the text fades in, in the 1s after that. R=xiyuan@chromium.org BUG=chromium-os:28634 TEST=Tested the fade in screen with the --enable-kiosk-mode flag. Review URL: https://chromiumcodereview.appspot.com/10024023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131400 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/chromeos/login/demo_user_login.css5
-rw-r--r--chrome/browser/resources/chromeos/login/demo_user_login.js3
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/resources/chromeos/login/demo_user_login.css b/chrome/browser/resources/chromeos/login/demo_user_login.css
index 94e15ca..296d0fb 100644
--- a/chrome/browser/resources/chromeos/login/demo_user_login.css
+++ b/chrome/browser/resources/chromeos/login/demo_user_login.css
@@ -30,10 +30,15 @@ body {
}
#logo {
+ -webkit-transition: opacity 1s linear;
+ opacity: 0;
width: 150px;
}
#demo-login-text {
+ /* Delay the login text showing up till the logo has fully faded in */
+ -webkit-transition: opacity 1s linear 1s;
font-size: 24px;
+ opacity: 0;
padding-top: 80px;
}
diff --git a/chrome/browser/resources/chromeos/login/demo_user_login.js b/chrome/browser/resources/chromeos/login/demo_user_login.js
index d898728..7b758b7 100644
--- a/chrome/browser/resources/chromeos/login/demo_user_login.js
+++ b/chrome/browser/resources/chromeos/login/demo_user_login.js
@@ -9,6 +9,7 @@
/**
* Handles a user clicking anywhere on the screen. This will log the demo user
* in. Yes, this actually _is the intention.
+ * @param {Event} e The click event that triggered this function.
*/
onClick = function(e) {
document.removeEventListener('click', onClick);
@@ -20,6 +21,8 @@ onClick = function(e) {
* Initializes the click handler.
*/
initialize = function() {
+ $('logo').style.opacity = 1;
+ $('demo-login-text').style.opacity = 1;
document.addEventListener('click', onClick);
};