Slider Not fully sliding and creating some unslided space upon every slide

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));


Which property is hindering the full swipe?

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);
  border: 2px solid red;
1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.