Git Product home page Git Product logo

Comments (3)

amorey avatar amorey commented on July 30, 2024

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.

dandv avatar dandv commented on July 30, 2024

Very nice! The method described on Scotch.io also manages to animate the label without any JS. Worth adopting?

from mui.

amorey avatar amorey commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.