I'm a web developer, graphic designer, type designer, musician, comicbook-geek, LEGO-collector, food lover … as well as husband and father, located just south of Copenhagen, Denmark.
That's a great idea! I added it to the "inner" image instead of the wrapper, translateX(calc(var(--ob-I-tx, 0) * var(--ob-I-sx, 1))) – and then on rtl, it´s simply [dir="rtl"] .ob__img { --ob-I-sx: -1; }.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Why not use something like
translateX(calc(var(--IW-tx, 0) * var(--S-sx, 1)))
instead of the scaling?That's a great idea! I added it to the "inner" image instead of the wrapper,
translateX(calc(var(--ob-I-tx, 0) * var(--ob-I-sx, 1)))
– and then onrtl
, it´s simply[dir="rtl"] .ob__img { --ob-I-sx: -1; }
.