如何在变化的输入上产生过渡效果 [英] How to make a transition effect up the input on change

查看:60
本文介绍了如何在变化的输入上产生过渡效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将这种特殊效果放在下拉列表上

I need to place this particular effect on a dropdown

我需要通过使用JS,Jquery,CSS和HTML将这种特殊效果放置在占位符上升且新vale占据该字段的下拉列表中

I need to place this particular effect on a dropdown where the placeholder goes up and the new vale takes the field, just by using JS, Jquery, CSS and HTML

过渡之前 转换后

推荐答案

您想要的这种输入称为材料设计输入",几年前Google在此宣布.克里斯(Chris)上的代码描述了如何以一种很好的方式来实现它,您可以自己使用或自定义它. 您可以点击以下链接获取更多信息: 材料设计输入

This kind of input that you wanted, called material design input, where the google announced it a few years ago. Chris on code describe how to implement this in a good way that you can use or customize it by yourself. you can follow the link below for more information: Material Design Input

这篇关于如何在变化的输入上产生过渡效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆