5 ms·
> Then simply include the correct files, write some HTML, and call mdc.autoInit() within a closing <script> tag. Why on earth do we need JS involved in what sh
by r1ch 10y ago
> Then simply include the correct files, write some HTML, and call mdc.autoInit() within a closing <script> tag.
Why on earth do we need JS involved in what should be some simple HTML / CSS?
- rickycook 10y agothe usual thing in other MD HTML frameworks is the ripple effect on buttons, and a few others. it's upsetting but legitimate
- SamBam 10y agoMD often involves a fair bit of animation. If you look at the individual components, though [1], most of them (like cards) actually have no associated JS at all. Most of the other components, like the TextField (which includes JS to have things like the placeholder text swoop to a mini version above the field once you start typing) have gracefully-degrading versions. Not all of them do, however. 1. https://github.com/material-components/material-components-web/tree/master/packages https://github.com/material-components/material-components-w...