Hello wizards, I hope you are doing great. Today in this blog you’ll learn how to create the "Neumorphism Effect on Social Media Icons" project using HTML & CSS.
Preview
In the above video, you’ve seen the preview of the "Neumorphism Effect on Social Media Icons" project and I hope you are now able to create this type of project. If not, I have provided all the HTML & CSS code below.
Neumorphism Effect on Social Media Icons [Source Code]
To get the following HTML & CSS code for the Neumorphism Effect on Social Media Icons project. You need to create two files one is an HTML file, and the second one is a CSS file. After completing these two files, you can copy-paste the codes on your document.
Remember, you’ve to create a file with a .html extension for HTML code and a .css extension for CSS code.
You can also download all source code files from the given download button.
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Neumorphism Effect on Social Media Icons</title> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> </head> <body> <h1>Neumorphism Effect on Social Media Icons</h1> <div class="iconsContainer"> <a href="#" class="instagram"><i class="fab fa-instagram"></i></a> <a href="#" class="github"><i class="fab fa-github"></i></a> <a href="#" class="telegram"><i class="fab fa-telegram"></i></a> <a href="#" class="youtube"><i class="fab fa-youtube"></i></a> <a href="#" class="twitter"><i class="fab fa-twitter"></i></a> </div> </body> </html>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } body { height: 100vh; display: flex; justify-content: center; align-items: center; flex-direction: column; background: whitesmoke; } h1 { margin-bottom: 20px; } a { height: 80px; width: 80px; margin: 0 15px; display: inline-block; position: relative; text-decoration: none; border-radius: 50%; background: whitesmoke; box-shadow: -4px -4px 8px white, 4px 4px 8px rgba(0, 0, 0, 0.2); } a:hover:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; background: whitesmoke; box-shadow: inset -4px -4px 8px white, inset 4px 4px 8px rgba(0, 0, 0, 0.2); } a .fab { position: relative; line-height: 80px; width: 100%; height: 100%; text-align: center; font-size: 35px; } a:hover i { transform: scale(0.85); } .instagram { color: #f93e92; } .github { color: #000000; } .telegram { color: #29c2ff; } .youtube { color: #ff0000; } .twitter { color: #3680ff; }