I don’t know if the question title is correct or not
this is what i do
here is my code
<div class="item_dot --straight"></div>
.item_dot {
background: red;
width: 10px;
height: 100%;
}
.item_dot {
background: red;
width: 10px;
height: 100px;
}
<div class="item_dot --straight"></div>
I just want to use CSS to change, as height increases, so does the number of dots.
If I scroll the page, these dots appear one by one
3
Answers
here is what I have achieved based on the question.
Hope this helps, and you can also achieve similar results using
<hr> tag
Here is an example
and to achieve this
you would need to implement JavaScript.
we added just the border-left please check it.
To overcome this problem just add these styles please check this link:
https://codesandbox.io/embed/zen-aj-5djm7b?fontsize=14&hidenavigation=1&theme=dark
1st way:
or else another way is if you get height 100px then you have apply this css
border
on the left or right side of thediv
.background
, set theborder-color
instead.width
.border-box
box sizing so thediv
considers the size of the border.height
as needed.