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

Unified Diff: chrome/browser/resources/settings/about_page/about_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/settings/about_page/about_page.js
diff --git a/chrome/browser/resources/settings/about_page/about_page.js b/chrome/browser/resources/settings/about_page/about_page.js
index 69fda24b8c4b39d0f37d2d7682ad284d415caee7..df86d49102ab781cf575745575e0ef4d4cc2565d 100644
--- a/chrome/browser/resources/settings/about_page/about_page.js
+++ b/chrome/browser/resources/settings/about_page/about_page.js
@@ -281,11 +281,12 @@ Polymer({
/** @private */
onProductLogoTap_: function() {
- var logo = this.$['product-logo'];
- logo.classList.remove('spin');
- // Force a style recalc that cancels the animation specified by "spin".
- getComputedStyle(logo).getPropertyValue('animation-name');
- logo.classList.add('spin');
+ this.$['product-logo'].animate({
+ transform: ['none', 'rotate(-10turn)'],
+ }, {
+ duration: 500,
+ easing: 'cubic-bezier(1, 0, 0, 1)',
+ });
},
<if expr="_google_chrome">

Powered by Google App Engine
This is Rietveld 408576698