CSS-Tricks / MovingBoxes

Simple horizontal slider which grows up the current box when it's in focus (image, title & text) and back down when it's not in focus.
http://css-tricks.github.io/MovingBoxes/
GNU Lesser General Public License v3.0
280 stars 147 forks source link

Opacity #69

Closed superyarik closed 12 years ago

superyarik commented 12 years ago

i think good idea is to add opacity(for not active items) option, for using in .animation

Mottie commented 12 years ago

Maybe try this bit of css (demo):

.mb-panel:not(.current) {
    opacity: 0.5;
    filter: alpha(opacity=50);
}
superyarik commented 12 years ago

yes, it is work, but opacity appear after clicking next/prev button, not nice.

Mottie commented 12 years ago

Ok, try some css3 transitions then (demo):

.mb-panel:not(.current) {
    opacity: 0.5;
    filter: alpha(opacity=50);
    -webkit-transition: opacity 1s ease-out;  /* Saf3.2+, Chrome */
       -moz-transition: opacity 1s ease-out;  /* FF4+ */
        -ms-transition: opacity 1s ease-out;  /* IE10 */
         -o-transition: opacity 1s ease-out;  /* Opera 10.5+ */
            transition: opacity 1s ease-out;
}
Mottie commented 12 years ago

Or maybe try what beshur did on his site and change the arrow images to a gradient fill from white to transparent then overlap the outer images.

I modified a demo using his images here.

Mottie commented 12 years ago

I'm guessing the one of the above solutions has solved your problem, so I'm closing this issue. If not, please feel free to re-open this issue. Thanks!