Working method to animate box-shadow with jQuery

css, jquery, jquery-animate

Solution

you can use CSS3 `transition`:

jsBin demo

.box {
    background: #1c1c1c;
    padding: 10px;
    margin:20px;
    width: 200px;
    -webkit-transition: -webkit-box-shadow 0.5s ease-out;
    -moz-transition: -moz-box-shadow 0.5s ease-out;
    transition: box-shadow 0.5s ease-out;
}
 
.box:hover {
    -webkit-box-shadow: 0px 0px 15px #444;
    -moz-box-shadow: 0px 0px 15px #444;
    box-shadow: 0px 0px 15px #444;
}

P.S, instead of `s` (seconds) you can use: `ms` (millis).

Problem

Im asking this in reference to the previous thread of the same vein, which contains a number of outdated non-working solutions and as well as the jquery box-animation plugin which is restricted to one box. Does anyone know how to animate the box-shadow of multiple elements?

Original source

Related problems