#Compact User Area

1 messages · Page 1 of 1 (latest)

dark stag
#

is it possible to have the animation play when hovering over it instead of just when you take it off?

hallow lion
# dark stag is it possible to have the animation play when hovering over it instead of just ...

Yea but it looks not very nice. The Problem is that I have to animate this with max-height and its problematic to animate because the browser has to recalculate layout and repaint for each frame, since max-height affects the element's box model and layout flow. This is the reason because its kinda laggy:

So you can add this which is not the whole animation but its not so laggy:

.visual-refresh .panels_c48ade:hover .wrapper_e131a9,
.visual-refresh .panels_c48a9 .wrapper_e131a9:hover,
#vc-spotify-player:hover,
.visual-refresh .panels_c48ade:hover #vc-spotify-player,
.visual-refresh .panels_c48a9 .wrapper_e131a9:hover #vc-spotify-player {
  transition:
    transform 0.15s ease 0.01s,
    opacity 0.3s ease 0.01s;
}```
dark stag
hallow lion
#

But the trick didnt work in the other way

dark stag
hallow lion
dark stag
#

weird

hallow lion
#

is probably due to the code from me itself

latent cape
#

snippet isnt working

hallow lion
# latent cape snippet isnt working

First of all, "snippet isnt working" is not very helpful, I need more details if you want a fix.
Also the snippet works perfectly fine. Most likely, you have some other CSS code that is affecting the snippet...

next lily
hallow lion
#

or why are you forwarding the message from another thread?

#

Also I checked this right now and there is no overlapping

#

but anyways if you have something overlapping, look after z-index

next lily
next lily
hallow lion
hallow lion
#

that is usually the problem

fair flume
#

would it be possible to add the "stream your current game" thing to the hidden part?

hallow lion
# fair flume would it be possible to add the "stream your current game" thing to the hidden p...

keep the import etc and only add this:

.visual-refresh {
  .panel__5dec7 {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateY(5px);
    transition:
        max-height 0.15s ease,
        transform 0.15s ease 0.055s,
        opacity 0.3s ease,
        padding 0.3s ease;
  }
}

.visual-refresh .panels_c48ade:hover .panel__5dec7 {
  max-height: 150px !important;
  transform: translateY(0);
  opacity: 1;
  transition:
    max-height  0s ease;
}

.visual-refresh .panels_c48ade:hover .panel__5dec7 {
  padding: 8px;
}```
#

Yea this Version of the Compact User Area is very laggy because of max-hight. I made another version of it but idk because of the 12 :has many users will have problems I think. I dont think its worth making it public

fair flume
#

\o/

#

perfect

hallow lion
fair flume
#

🤔

#

almost perfect... whats the best way to adjust the height of it evenly?

hallow lion
fair flume
#

hmm, that might be better, yeah, there is a fair bit of padding on the top and bottom of the text box so could take from that easy enough ^^

hallow lion
#

Yea Idk I dont have this snippet because I like the round corners like this more dogsmirkreverse

#

But maybe Ive just gotten used to it

ornate sky
#

It appears the recent Discord Update broke this snippet

hallow lion
#

I am working on fixing it, but I am currently not home

next lily
hallow lion
hallow lion
#

@ornate sky @next lily Should be good now if u refresh the css

astral path
#

doesnt work 🥹

fair flume
#

The combined version im using works at the moment:

@import url("https://raw.githubusercontent.com/Augenbl1ck/Discord-Styles/refs/heads/main/userAreaSpotifyControl.css");

:root {
    /* Only include this part if you wish to change these variables */
    --user-area-border-width: 1.5px;
    --user-area-border-color: rgba(121, 227, 121, 0.5);
}

.visual-refresh {
  .panel__5dec7 {
    max-height: 0;
    opacity: 0;
    padding: 0;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateY(5px);
    transition:
        max-height 0.15s ease,
        transform 0.15s ease 0.055s,
        opacity 0.3s ease,
        padding 0.3s ease;
  }
}

.visual-refresh .panels_c48ade:hover .panel__5dec7 {
  max-height: 150px !important;
  transform: translateY(0);
  opacity: 1;
  transition:
    max-height  0s ease;
}

.visual-refresh .panels_c48ade:hover .panel__5dec7 {
  padding: 8px;
}```