Css Jquery Button Hover Effect, Jquery Button Fade Effect

Css Jquery Button Hover Effect, Jquery Button Fade Effect

In this tutorial we will create the css jquery button hover over the button hover with the help of css and jquery. First will create the CSS Button Hover Effect than will move to Jquery Button Fade Effect. In Jquery we will use the jquery script to make our button to change its color when we hover it. But now you are thinking that it can also be done through CSS than why we need the Jquery. So here is the ans when we use the jquery with the css than we will create the css jquery button hover at the time of button hover.


CSS Button Color Change on Hover

We use a simple button to work with and change its background color.

Now we will create our css and use that css over that button. For using this css over the button we have 2 options

1. By describing the style on all the buttons over the website.

2. By making the class in css and use that class whenever we want.

First we will work with the first method in this we will not make any class we will write our code for the input button. It will create all the buttons with same color and effects.

Css Button color change

Now your button background is of light lavender. But have you seen your button its not looking good now its looking like an aahhhh too old……. too creapy. So we will create it much better and change its properties to look it more beautiful.

We have changed the background color so you will see the button more clearly. Below is the new button which is designed after the new css properties.


Css Button hover

Above is your new button now we will create the hover effect through CSS and change the background color. Add the below code to the css and you will see the black color when you hover the button


So this the example of button hover color change from CSS only. Now if we use the second method than just make a css class and use that css class in your button. We are not describing it here now we will move to the Jquery Hover effect.

Jquery Button Hover

Now we will make the jquery code for changing the background color. Include Jquery in your page to run the jquery code.

Here is the code for jquery hover effect.

Now your button will look like this.

Thats it. Now you can use it and change your code according to your need.

3 Comments

  1. Nice Effect Thank U

  2. Useful!
    You can use CSS transition ease-in-out, to make the CSS one animate.
    Keep up good work.
    -Motyar

Leave a Reply

Your email address will not be published.

*