Comments (3)
It's great to hear you like MUI!
We're focused on making the framework as small and minimalistic as possible so input field animations aren't on the roadmap. Our plan for supporting more advanced animations/components is to make the framework extremely hackable/customizable. For example, our CSS is very simple so if you wanted to use those animations yourself you could simply add your own CSS/HTML. Here's an example that uses the method described here:
http://jsfiddle.net/muicss/Lrw1me3e/
And here's a gist using the boilerplate HTML:
https://gist.github.com/amorey/7106a6604dc2466ae215
Hope that helps! Over the next few weeks we're going to start improving the customization documentation so I'd love to hear your feedback.
from mui.
Very nice! The method described on Scotch.io also manages to animate the label without any JS. Worth adopting?
from mui.
The label animations in MUI are mostly implemented with CSS but you need JS to detect if an input element is empty or not (since the :empty CSS pseudo class doesn't work for input elements).
Here's the JS code that that triggers label animations:
https://github.com/muicss/mui/blob/master/src/js/forms/form-control.js
On May 31, 2015, at 4:55 PM, Dan Dascalescu [email protected] wrote:
Very nice! The method described on Scotch.io also manages to animate the label without any JS. Worth adopting?
—
Reply to this email directly or view it on GitHub.
from mui.
Related Issues (20)
- npm run build-e2e-tests fails with an error HOT 2
- WebComponents part is outdated? Should we perfect it? HOT 1
- Label in input form not properly visualized HOT 2
- React Dividers example broken? HOT 1
- Configuration via mocha.opts is DEPRECATED HOT 2
- Clarify or change behavior of Tabs in CSS/JS HOT 3
- How we can update the muicss docs? HOT 3
- Outlined text HOT 2
- Dark mode support via automatic CSS media query prefers-color-scheme HOT 1
- limit size of select menu HOT 4
- Is this repo still being maintained? HOT 1
- Required validation for select HOT 2
- Reset form input validation HOT 4
- select with multiple attribute HOT 2
- Make tab hidden/visible on some criteria HOT 2
- MUI hacked? Github Repo has only a 0.10.2 tag and the website and NPM show a 0.10.3 version. HOT 1
- Support for react 17 HOT 5
- Bugs in negated `in` expressions
- [Autocomplete] How to implement? HOT 1
- Mobile Safari incorrectly warns "Your browser does not support WebComponents" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui.