VampireExpert

cohost's #1 sleepyposter

⎯⎯⎯⎯⎯

Approximate age36
LocationSweden
Trans?Yes
Goth?Yes
Lesbian?Yes
GF?No

⎯⎯⎯⎯⎯

Tunnel Snakes gang logo
Who are the Tunnel Snakes?

List of places where I can be found
vampire.expert/

wavebeem
@wavebeem
hello there

toggle dark mode via the post menu to see the animation. apparently the variable --tw-border-opacity is set to 1 in dark mode and not set in light mode. so you can use calc to multiply something by that value.

<div style="
transform: rotatex(calc(0.5turn * var(--tw-border-opacity, 0)));
transition: transform 500ms;
text-align: center;
border: 1px solid;
padding: 2rem 1rem;
">
hello there
</div>
syntax highlighting by codehost

You must log in to comment.

in reply to @wavebeem's post:

i really liked your post btw. and yeah i'm hoping we could get some kind of official variable as well.

i noticed that we finally have some non-tailwind classes like .co-post, but i wasn't sure if these were yet more implementation details or if staff said they put that in there as a nice-to-have for custom theme authors...