I have replicated a slider here.
I am seeking help to understand where I am faltering in calculations.
this is the culprit:
flex: 0 0 calc((100%) / var(--slides-across));
Or
Which property is hindering the full swipe?
I have replicated a slider here.
I am seeking help to understand where I am faltering in calculations.
this is the culprit:
flex: 0 0 calc((100%) / var(--slides-across));
Or
The padding and border make it bigger than 100%. Add box-sizing:border:box.
.hrecur {
flex: 0 0 calc((100%) / var(--slides-across));
transition: transform 0.5s;
padding: 7px;
display: flex;
justify-content: space-between;
gap: 15px;
align-items: center;
background-color: var(--color4);
background-clip:content-box;
border: 2px solid red;
box-sizing:border-box;
}
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.