Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Finding the skewed offset of an element - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
4y ago
•
3 replies
JWode
Finding the skewed offset of an element
I
've a full width container
, that has a
before
before
pseudo element that
's 3
/5
's the width absolutely positioned
, and skewed by 12 degrees
.
I
'd like to place another element after it
, so get the bounding rect coordinates and update a css
-variable with the
right
right
value
, which will be used as the
left
left
of the next element
. I can
't work out how to calculate
/take into account how to adjust for the slant though
Codepen
:
https://codepen.io/nwoodward/pen/JjBGbqW?editors=1111
Would appreciate any thoughts
/approaches
! Thanks
See the red progress bar
, and the
'x
' distance
:
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Finding element in the dev tools
KP-C
Kevin Powell - Community / front-end
3y ago
Fixing Border Of An Element
KP-C
Kevin Powell - Community / front-end
3y ago
Animating an element towards another element
KP-C
Kevin Powell - Community / front-end
2y ago