DEV Community

How to Create the Perfect Transparent Login Form

Adeyele Paul on May 09, 2024

How you design forms with CSS makes a big difference. They can either catch someone's attention in a good way or turn them away One form style sur...
Collapse
 
connor-ve profile image
Connor Van Etten

Great article!

Something to add, when you make a transparent background you might want to blur the images behind the box, as they can make it harder to read. Try adding this to your login-container class in your CSS.

  border-radius: 8px;
  box-shadow: 1px 1px 5px 1px #c8c8c854;
  background-color: #c8c8c87c;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid #e9e9e94f;
Enter fullscreen mode Exit fullscreen mode

Adding backdrop-filter and -webkit-backdrop-filter along with a boxshadow that contains blur will add some level of "glass" like effect to your div.

Cheers!

Collapse
 
adesoji1 profile image
Adesoji1

True, he could add ๐Ÿ‘€ to view the password too then later asterisk it

Collapse
 
peboy profile image
Adeyele Paul • Edited

This!!! ๐Ÿ“Œ๐Ÿ“Œ๐Ÿ“Œ

Collapse
 
caiocv18 profile image
Caio Vinicius

Amazing article!

Collapse
 
fadekocodeit profile image
Future_Developer

Thank you for sharing bro!

Collapse
 
peboy profile image
Adeyele Paul

You're welcome! Glad it was helpful.

Collapse
 
maheshmrs profile image
Mahesh Shinde

Thank you bro!
Nice article, does GitHub link available?

Collapse
 
diegoluisito profile image
Ericson Ramos

Can you give me a sample design of real estate company landing page? Tia

Collapse
 
adesoji1 profile image
Adesoji1

Rooting up ๐Ÿ’ช๐Ÿฝ for you

Collapse
 
peboy profile image
Adeyele Paul

Thank you, Adesoji ๐Ÿ’œ

Collapse
 
ramonortegajr profile image
R A M

Nice work bro! Keep it up

Collapse
 
peboy profile image
Adeyele Paul

Thank you ๐Ÿ’ช