Revolution Slider Background Layer CSS -
i'm trying set 2 types of slides in revolution slider. there main background image slide, semi-opaque layer taking 40% of left side or right side of slide, text layer above that. have following css can achieve semi-opaque layer 1 side (right or left, in case below, left side) using 'after' psuedo selector:
.rev_slider .slotholder:after{ width: 40%; height: 100%; content: ""; position: absolute; top: 0; left: 0; pointer-events: none; /* black overlay 50% transparency */ background: rgba(0, 0, 0, 0.5); }'
this takes care of 1 side of transparency not other, need slide-specific class adds "left" or "right" property parent .slotholder class. suggestions?
you can try use :before right side, please try use css
.rev_slider .slotholder:after, .rev_slider .slotholder:before{ width: 40%; height: 100%; content: ""; position: absolute; top: 0; pointer-events: none; /* black overlay 50% transparency */ background: rgba(0, 0, 0, 0.5); } .rev_slider .slotholder:before{ right: 0; } .rev_slider .slotholder:after{ left: 0; }
Comments
Post a Comment