Elementor button press animation

[ad_1]

Hi, im trying to make button with press animation using elementor like duolingo buttons, [duolingo.com](https://duolingo.com/)

I have set a button color to green with bottom border radius to 5

and im trying to set the button border to 0 when pressed

but none of them is working.

​

selector:active {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
border-radius: 0; border-width: 0;
transform: translateY(5px); }

[ad_2]
2 Comments
  1. [https://codepen.io/blu6/pen/OJGxZMZ](https://codepen.io/blu6/pen/OJGxZMZ) – there’s no point setting the border-radius if you’re setting border-width to 0. Also, removing the border will cause a shift in the button, so it’s better to set the border-color to that of the background – as per my codepen.

  2. Maybe try box shadow instead of border and make sure to set transition. I dont think you can animate border width, but i might be wrong.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer