With position: sticky;
now in CSS
there are times where we want to transform an element when it hits the position where it’s sticky.
Proposal
Let’s do a simple element changing from a circle to a square
#sticker {
position: sticky;
top: 15px;
width: 100px;
height: 100px;
background: red;
border-radius: 50%;
}
#sticker:sticky {
border-radius: 0;
}
Yup we need this, or we still have to rely on Javascript.
Sorry if this has already been discussed?
Or will we be using Element Queries for this?
I believe Element Queries will only be the same that we use for media queries, I could be wrong?