-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Ripple v2 component #4467
Comments
TODO
|
Preliminary README, subject to whether auto-init for ripple requires ripple DOM to already be constructed or whether it can be used as an attribute on the surface of interest (similar to Ink RippleThe ink ripple implements the main touch interaction feedback component within Material Design. HTML Attributes
UsageThe basic ripple markup is as follows: <div class="mdl-ripple">
<div class="mdl-ripple__background"></div>
<div class="mdl-ripple__foreground">
<div class="mdl-ripple__foreground-circle"></div>
</div>
<div class="mdl-ripple__foreground">
<div class="mdl-ripple__foreground-circle"></div>
</div>
<div class="mdl-ripple__foreground">
<div class="mdl-ripple__foreground-circle"></div>
</div>
<div class="mdl-ripple__foreground">
<div class="mdl-ripple__foreground-circle"></div>
</div>
</div> By default, the ripple will automatically attach and draw using the parent element, though an alternative can be specified through the programmatic constructor. <div class="surface" style="overflow: hidden">
<div class="mdl-ripple">
...
</div>
</div> |
Codepen - http://codepen.io/traviskaufman/pen/YWRYaX?editors=0110 The approach I'm taking leverages CSS custom properties to set the positions |
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Delivers #126819581]
Resolves #4467 [Finishes #126819581]
Spec reference (sort of): https://material.google.com/what-is-material/material-properties.html
The text was updated successfully, but these errors were encountered: