Answer the question
In order to leave comments, you need to log in
How to overwrite state in React?
How can I change the value of active ?
this.state = {
clientData: {
vatExisting: false,
vatAmount: "",
active: null
}
};
activeCheckboxChange = () => {
this.setState(prevState => ({
clientData: {active: !prevState.clientData.active }
}));
};
Answer the question
In order to leave comments, you need to log in
overlay left and right translucent white blocks with absolute positioning.
We take any js slider that can rotate several images, using css we modify the blocks with buttons, adding volume, transparency, and anything else.
Finishing js to taste
as I understand it, your slider is in .container, and not in container-fluid Slider
wrappers
.slider{
position:relative;
}
.slider:before,.slider:after{
content:'';
display: block;
position:absolute;
top:0;
bottom:0;
width: 100%; /*Вот тут проблема, чтобы точно определить расстояние от края до контейнера слайдера*/
width:calc((100vw - 1000px)/2); /*Смотрите кроссбраузерность*/
background:rgba(255,255,255,.8);
}
.slider:before{
right:100%;
}
.sliderr:after{
left:100%;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question