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

Unified Diff: chrome/browser/resources/help/help_page.js

Issue 2321913003: Old and new about pages: simplify product logo animation code (Closed)
Patch Set: happify closure Created 4 years, 3 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
Index: chrome/browser/resources/help/help_page.js
diff --git a/chrome/browser/resources/help/help_page.js b/chrome/browser/resources/help/help_page.js
index 9382a6864377363b90b341521b31dd36c35d14fe..5053ff20ba111da301b7eaa36747275d4793effe 100644
--- a/chrome/browser/resources/help/help_page.js
+++ b/chrome/browser/resources/help/help_page.js
@@ -197,10 +197,12 @@ cr.define('help', function() {
var logo = $('product-logo');
logo.onclick = function(e) {
- logo.classList.remove('spin');
- // Force a style recalc that cancels the animation specified by "spin".
- getComputedStyle(logo).getPropertyValue('animation-name');
- logo.classList.add('spin');
+ logo.animate({
+ transform: ['none', 'rotate(-10turn)'],
+ }, /** @type {!KeyframeEffectOptions} */({
+ duration: 500,
+ easing: 'cubic-bezier(1, 0, 0, 1)',
+ }));
};
// Attempt to update.
« no previous file with comments | « chrome/browser/resources/help/help_content.css ('k') | chrome/browser/resources/options/compiled_resources.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698