Position absolute

Hi everyone I realise this https://codepen.io/alpha_66/pen/YzdeMwb?editors=0110 i want put the red div you have scroll class at the right side of his parent but he don't work can I get some idea about what is going wrong? thanks by advance.
2 Replies
Chooβ™šπ•‚π•šπ•Ÿπ•˜
The default transform origin is the center. It rotated on the center point which does not touch the right side of its parent, because the center is first determined before the rotation happens, and that would be half the width of the div away from its parent's right edge. You could use something like:
transform-origin: bottom right;
transform-origin: bottom right;
Pat66
Pat66β€’14mo ago
thanks for your answer
Want results from more Discord servers?
Add your server