From f3673882b957acb0c79f4e0c67e0447233699275 Mon Sep 17 00:00:00 2001 From: Yvonne Yip Date: Fri, 1 Nov 2013 14:13:00 -0700 Subject: [PATCH] contacts-v2: reorganize --- shiny/Contacts-v2/components/contacts-app.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/shiny/Contacts-v2/components/contacts-app.html b/shiny/Contacts-v2/components/contacts-app.html index 8215898..52b5d43 100644 --- a/shiny/Contacts-v2/components/contacts-app.html +++ b/shiny/Contacts-v2/components/contacts-app.html @@ -247,7 +247,7 @@
-
+
@@ -424,6 +424,12 @@ } } if (this.desktopLayout) { + var rect = sender.getBoundingClientRect(); + var target = sender.querySelector('.contactItemInk'); + this.$.inkAnimation.sample = function(t) { + target.style.webkitClipPath = 'circle(' + (e.x - rect.left) + 'px,' + (e.y - rect.top) + 'px,' + t * rect.width + 'px)'; + }; + this.$.inkAnimation.target = target; this.$.inkAnimation.play(); } },