Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
contacts-v2: reorganize
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Nov 2, 2013
1 parent 57127ed commit f367388
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion shiny/Contacts-v2/components/contacts-app.html
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
<div class="contactItemControls">
<polymer-ui-icon-button icon="close"></polymer-ui-icon-button>
</div>
<div class="contactItemBody" on-pointerup="{{setupInkAnimationAction}}" on-click="{{activateAction}}">
<div class="contactItemBody" on-click="{{activateAction}}">
<div class="contactItemInk"></div>
<polymer-flex-layout align="center"></polymer-flex-layout>
<contacts-icon contact="{{contact}}"></contacts-icon>
Expand Down Expand Up @@ -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();
}
},
Expand Down

0 comments on commit f367388

Please sign in to comment.