Skip to main content

Neumorphism Social Media Buttons using HTML & CSS

Neumorphism Social Media Buttons using HTML & CSS

Neumorphism Social Media Buttons are much more beautiful than ordinary button designs. You can make this type of design using only HTML and CSS.

In this article, I am going to show how CSS Neumorphism social media buttons are created using HTML and CSS code. Earlier I showed the design of many more types of social media buttons using Neumorphism design.

Neumorphism is a phenomenal UI trend that is currently being used to create a variety of elements. Such designs are much more attractive and much easier to make. These are basically made using a box-shadow of CSS code.

 There are two types of Neumorphism designs, one is dark and the other is light. In this case, I have made light Neumorphism social media buttons. Social media buttons are used in different places so that the user can share the content in his social account.

CSS Neumorphism Social Media Buttons [Live Demo]

 Below I have given a live demo that will help you understand how this CSS Neumorphism social media button works.


See the Pen neumorphism social button by Raj Template (@RajTemplate) on CodePen.

Hopefully, the live demo above has helped you get a live experience of these Neumorphism social-media-icons. 

As you saw in the demo here I have used five social media icons and designed them using CSS code. I have given each icon the size of a button. Under normal circumstances, those buttons are slightly raised. When you click on those buttons or move the mouse, the buttons will move slightly inwards.

 I have used blue color in all the icons. You can use any other color or different custom color for each if you want. In this case, the background color of the webpage and the background color of the social media button is completely the same. 

However, in this case, I have used the shadow of the CSS code to determine the size of the social button. Below I have provided the necessary source code which you can copy and use in your own work.

Neumorphism Social Media Buttons HTML and CSS

Create an HTML and CSS file to use the code below. In this case, you can not create a separate CSS file. You can add the required source code to the HTML file using style tags (<style> </style>).

HTML Code:

The following codes are HTML programming codes that were originally used to create their basic structure. Here I have used the icon of font-awesome. I used the CDN link of the font awesome to make these icons work. You copy the following HTML code and then paste it into your HTML file.

    <a href="#" class="btn"><i class="fab fa-facebook-f"></i></a>

    <a href="#" class="btn"><i class="fab fa-whatsapp"></i></a>

    <a href="#" class="btn"><i class="fab fa-youtube"></i></a>

    <a href="#" class="btn"><i class="fab fa-instagram"></i></a>

    <a href="#" class="btn"><i class="fab fa-twitter"></i></a>
 

CSS Code: 

The following codes are the CSS codes that have been used to design these Neumorphism social media buttons. You copy these codes and paste them into your CSS file. If you want to paste it into an Html file, use the style tag.

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: #dde1e7;  /* webpage bacground color */
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.btn {
  position: relative;
  transition: 0.2s;
  background: #dde1e7;   /* background color of button */
  border-radius: 50%;  /* make it round */
  height: 70px;   /* height of button */
  width: 70px;
  margin: 20px;
  box-shadow: -7px -7px 20px 0 rgba(255, 255, 255, 0.9),
          7px 7px 20px 0 rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: scale(1.1); /* button hover effect */
}

.btn::before {
  content: "";
  background: #dde1e7;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  position: absolute;
  height: 80%;
  width: 80%;
  transform: translate(-50%, -50%);
}

.btn:hover::before {
  box-shadow: inset -7px -7px 20px 0 rgba(255, 255, 255, 1),
          inset 7px 7px 20px 0 rgba(0, 0, 0, 0.3);
}

.btn i {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  color: #2b8eaa;  /* icon color */
  font-size: 35px;  /* icon font size */
  top: 50%;
  left: 50%;
}

.btn:hover i {
  font-size: 30px;
}
 

 Hopefully, you have been able to create a social media button of Neumorphism design using the above source code. If the above code does not work, you can download the required source code using the download button below.






Comments

Popular Posts

Animated Progress Bar using Only HTML and CSS

Animated progress bar is mainly used in various business and personal web sites. css progress bar helps to organize your knowledge in a beautiful way. In this article, I am going to show you how to create an animated progress bar using only HTML and CSS code. I have made many other types of Progress Bar before but in that case, I have used JavaScript.  I have not used any JavaScript or external JavaScript library for this design. I created this Animated Progress Bar design using Pure HTML and CSS code. Skill bars are used on various websites to streamline the amount of experience, education, etc. with the help of animations. First of all, I have given the background-color: # 30336b of a web page. Then I made a small box here. I used four CSS Progress Bar in that box. The value of this bar will be zero when opening the page then gradually it will reach the pre-determined meaning. Video Tutorial of Pure CSS Progress Bar If you want to know how to make it better then you...

Sidebar Menu Using Only HTML and CSS

This article shows you how to create sidebar menus using HTML and CSS code only. I have previously created many types of sidebars and navigation menubars using only HTML and CSS code so you can see those designs if you want.  Side Menubar A popular web element is currently used in the sidebar along with menubars on various websites. Undoubtedly the side menu bar is much more attractive and for this, the quality and beauty of the website are greatly enhanced. Under normal circumstances, I have completely hidden the menu bar on the web page.  There is a menu button that can be clicked to view the entire menu bar. There is also a cancel button which, when clicked, will completely hide the sidebar. In the sidebar, I have added links to various menu items, profile names, profile images, social media platforms.  First I gave the profile image and below that, I gave the profile name. Then I added some menu items here and added icons to each menu item. Then I created the...

Responsive Navigation Menu Bar using only HTML & CSS

Responsive navigation menu bar plays an important role for every website. The navigation menu bar creates user satisfaction with the beauty of the website. The user needs a responsive navbar so that he can easily find the topic of his choice.  I have designed many more types of menubars before. But in that case, I used JavaScript code to execute the menu button. I have not used any JavaScript or external JavaScript library for this design. I have created this Responsive Navigation menu bar using pure CSS and HTML code. I only used CSS code to make it responsive. I have made it responsive using only the  @media function of CSS code. Here I have basically used a logo and used five menu items . I have used the hover effect on the menu links. The background color will change when you click on those items or move the mouse. Video Tutorial of Responsive Navigation Menu Bar You can watch the video tutorial below to know how it works and how to make it. How T...

Automatic Image Slider using Only HTML & CSS

In this article, I am going to show you how to create an automatic image slider using only HTML and CSS code. We know that an image slider is a simple web element that is used to organize different images of the website in one place.  There are different types of image sliders and the most automatic image slider is used. This type of slider is mainly used in the hero section of the homepage of various websites. In addition, different types of services or portfolio websites are used to decorate the images of many types of projects.  Basically, this type of design has no navigation buttons which means there is no way to change the image manually. The images here will continue to change automatically from time to time. You can set this time in advance.  First of all, I set the background of a web page to black. Then I arranged all the images nicely there. In this case, I did not use any JavaScript code . It was created using effects in the animation of css3. ...

3D Image Slideshow using Only HTML and CSS

3D Image Slideshow is a type of image gallery that is currently used on a variety of websites. It helps to keep many types of images neatly arranged together. This not only enhances the beauty of the website but also user satisfaction.  I have already created many types of image sliders and image galleries but it is a little different. Basically, we use JQuery or JavaScript to change the image in other designs. However, I did not use any JavaScript in this case. In this case, I made it using only HTML and css3 . Yeah Al that sounds pretty crap to me, Looks like css3 just got used to the modern animation effect .  In this case, no button was created to change the image. It tends to change from time to time by itself. This means that it is an automatic 3d image slider built with HTML and CSS code only. This 3D image slider is like a square box. At certain intervals, this box rotates from right to left. I have used four images around this box. When the box is rotated, e...