pure css click effect

How we can create an animated click effect using only HTML & CSS? Solution: See this Pure CSS Click Effect With Animation, HTML CSS Button Press Effect.

Previously I have shared button hover effects, but this is a click effect that you can use on any element not only button. Basically, when we click on an element or button on modern websites and apps, there is an animation effect on click. We can create a kind of button press effect using pure HTML and CSS.

Today you will learn to create HTML CSS Button Press Effect. This is related to a little bit ripple effect, but its animation spread on outside the button. Basically, there are 4 icons and all the icons have the same click effect. When you will click on any icon then there will an effect reveal on the backside of the icon like a multi-circle spreading.

So, Today I am sharing Pure CSS Click Effect With Animation. There I have used pure CSS to create the effect because, the animation is very basic which we can create using basic CSS command. I did not use JS or any other library to creating this, and I have shared many buttons related program in the past you can check out.

If you are thinking now how this click animation actually is, then see the preview given below.

Preview Of HTML CSS Button Press Effect

See this video preview to getting an idea of how this button press effect looks like.

Live Demo

Now you can see this visually, also you can see it live by pressing the button above. If you like this, then get the source code of its.

You May Also Like:

Pure CSS Click Effect With Animation Source Code

Before sharing source code, let’s talk about it. First I have created a main div named container and placed 4 divs inside it. In all four divs I have placed a same class name “button” and inside each button div, I have placed a span tag. The span tag is for placing the icon, all these icons are based on ionicons (get).

Now using CSS I have placed all the elements in the right place, as you can see in the preview. I have placed items in the center using position & text-align command. After that, I gave the height and width to the icons and created a blank content with white background for creating the background circle. And finally for creating the animation I have used CSS @keyframe command and scale up the circle in 3 parts.

Left all other things you will understand after getting the codes, I can’t explain all in writing. For creating this effect program, you have to create only 2 files. First file for HTML and second for CSS. Follow the steps to creating this without any error.

index.html 

Create an HTML file named ‘index.html‘ and put these codes given below.

style.css

Now create a CSS file named ‘style.css‘ and put these codes given here.

That’s It. Now you have successfully created Pure CSS Click Effect With Animation, HTML CSS Button Press Effect. If you have any doubt or question comment down below.

Thanks For Visiting, Keep Visiting.

LEAVE A REPLY

Please enter your comment!
Please enter your name here