我有一个MDC的设置,但我的文本字段没有动画效果。
https://imgur.com/a/1h27vhD
这个链接展示了它应该达到的状态和我的字段所处的状态。
第一张图片是来自我的网站,你可以看到标签在进入活动状态时没有动画效果,而底部图片则是直接从Google Material Design演示页面获取的。
第一张图片是来自我的网站,你可以看到标签在进入活动状态时没有动画效果,而底部图片则是直接从Google Material Design演示页面获取的。
<link rel="stylesheet" href="https://unpkg.com/material-components-web/dist/material-components-web.min.css">
<script src="https://unpkg.com/material-components-web/dist/material-components-web.min.js"></script>
<div class="mdc-text-field mdc-text-field--outlined">
<input type="text" id="tf-outlined" class="mdc-text-field__input">
<label for="tf-outlined" class="mdc-floating-label">Your Name</label>
<div class="mdc-notched-outline">
<svg>
<path class="mdc-notched-outline__path"/>
</svg>
</div>
<div class="mdc-notched-outline__idle"></div>
</div>
我做错了什么?
提前谢谢。