loading...

re: Possibly the Most Useful CSS Trick VIEW POST

TOP OF THREAD FULL DISCUSSION
re: The "display: none;" style on the button is just a possibility: it may have been better to simply make the button slightly transparent initially, a...
 

This is more practical implementation of the example in the article. I had used javascript for this effect in past projects. Do you have codepen for this?

Yes, I do! codepen.io/xtrp/pen/QWWGGOQ, see line 96 of CSS to see the :not(:placeholder-shown) trick in action. As I said, this is part of a password-manager desktop application I am currently building, which is open sourced on GitHub as well.

— Fred

code of conduct - report abuse