affect top div opacity without affecting childrne example code

affect top div opacity without affecting childrne example code

affect top div opacity without affecting childrne example

affect top div opacity without affecting childrne example in css

#container {
    border: solid gold 1px;   
    width: 400px;
    height: 200px;
    background:rgba(56,255,255,0.1);
}

#box { border: solid silver 1px; margin: 10px; width: 300px; height: 100px; background:rgba(205,206,255,0.1); transition: 2s background; }

// if you then want to apply an animation, do it on background-color instead of opacity

By Manish Salunke In css -

Tags:

css

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99