#Animated Message Options
1 messages ยท Page 1 of 1 (latest)
@echo cipher I updated both versions, try them again. Are you using any other emoji-affecting css?
is there any way to make it not use so many has?
i can try it
โค๏ธ โค๏ธ
@sturdy lodge managed to remove half of the :has
hooray
Does anyone know how to make the translate button from the translate plugin go one further so emojis is on the end so the reactions make more sense?
ye I gotchu
[aria-label="Click to react with white_check_mark"] {
order: -5;
}
[aria-label="Click to react with skull"] {
order: -4;
}
[aria-label="Click to react with fire"] {
order: -3;
}
.separator_f84418 {
order: -2
}
[aria-label="Add Reaction"] {
order: -1;
}```
lower = left more
you could do the reverse, make add reaction 0, and do increasing numbers for any items you want to the right (translate, foward, reply, three dots), but that might mean missing various items that show up in specific cases
:has() is very laggy
I made a version a while back that's not animated, but doesn't have :has() (don't use the alternate version) #๐จ-css-snippets message
and it collapses all of the buttons at once, not the reaction ones individually
yea I'll prolly use that version unless author can optimize it
Thank you!
use this instead so you don't have to define it for all of your quick react emojis @gilded zealot
[aria-label="Add Reaction"] {
order: -1;
}
[aria-label^="Click to react with"] {
order: -2;
}
(still needs to be modified if your language isn't set to english)
oop didn't think about that
just learning css ๐
there's a side effect to that
the add emoji reaction is at the left now
that would've happened with yours too
ye sorry didn't mean to infer it was only with yours
add .hoverBarButton_f84418
.hoverBarButton_f84418[aria-label="Add Reaction"] {
order: -1;
}
.hoverBarButton_f84418[aria-label^="Click to react with"] {
order: -2;
}```
This doesn't work for me at least
This works
Why doesn't it work for me
send full code
I added it below the rest of the code
delete my code
delete this
what do you use to draw those rectangles?
I use sharex
ic, thanks!
Oh just realized it needs to be Click to instead to include Click to remove ...
Well damn
@gilded zealot
you can ignore that
that's Obsidian's code for a non-animated message options
edit the very bottom one to say "Click to " rather than "Click to react"
wonder why they are husking this, its not bad though
perfect
i've accidentally clicked reactions when focusing the discord window too many times
i mean it could still happen theoretically, but way less likely lol
:has()
at least that's why i
ed it
also the transitions are messed up
they define transition twice
here's an improved version
+no :has()
+better transition
-quick react emojis don't have their own separate step though
.buttonsInner__5126c>div:not(:last-of-type),
.buttonsInner__5126c>.hoverBarButton_f84418>div {
width: 0;
height: 0;
min-width: 0;
padding: 0;
margin: 0;
opacity: 0;
transition: min-width 0.25s ease-out,
width 0.25s ease-out,
height 0.25s ease-out,
padding 0.25s ease-out,
opacity 0.25s ease-out,
transform .4s cubic-bezier(.16,1,.3,1);
}
.buttonsInner__5126c:hover>.hoverBarButton_f84418:not(:last-of-type) {
width: 24px;
height: 24px;
min-width: 24px;
padding: 2px;
opacity: 1;
>div {
width: 20px;
height: 20px;
opacity: 1;
}
}
.buttonsInner__5126c:hover>.separator_f84418 {
width: 1px;
height: 24px;
margin: 2px 4px;
opacity: 1;
}
No, they're still not working and I don't have any CSS that affects the emojis.
However, Obsidian's solution works for me perfectly.
@eternal galleon having transition: twice doesn't work. only the padding transition is being applied. use transition: width 0.1s ease-out, padding 0.1s ease-out
also transitioning min-width helped the transition i think
@round chasm I actually did that, but it still didn't work properly (I even added !important at the end bc it wouldn't apply the property).
did this?
that's unrelated to the emoji problem you were having
Didn't knew this, thanks
why does this have 15 husks
holy blue colour
OK, so I found a solution to my emoji problem - all I had to do was add an overflow: hidden to the selector where the transition property is, which looks like this:
.buttonsInner__5126c > .button_f7ecac:not(:nth-last-child(2)) {
width: 0;
min-width: 0;
margin: 0;
padding: 0;
overflow: hidden; /* Prevent overflow */
transition: width 0.1s ease-out, padding 0.1s ease-out !important;
}```
And this is with @eternal galleon's original snippet (sorry for pinging).
ohh interesting (np i have no problems with pings)
:has()
and I think the css was worse at first
why does :has produce lag?
.one:has(.two)
has to check every descendant of every instance of .one
at least whenever possible, do .one:has(>.two) (or some other combinator like + or ~)
and you don't even need the has for .button_:has(div), just do [aria-label^=Click to] or [aria-label^=Click to react], [aria-labrl^=Click to remove]
and there's a lot of instances of .button
every message has message actions
ye i did that but i wanna make it for all languages and not just english
aren't you already using aria labels
only once lol
I think add reaction is the full name, but I'm on mobile rn
it's shorter
yeah but if you're using it once you might as well use it more
ur right: aria-label="Add Reaction"
yeah that's not even a long aria label
also here's an improved version for reference
except that didn't have the separate emoji stuff
doesn't*
oh u mind i take some stuff from ur improved version and put it into mine? i would just @ you
yeah that's fine
u ok with the updated message?
-# (And sorry for triple ping)
you have width and min-width twice and padding and margin
and you still have unnecessary :has()
do you have error/problem highlighting?
it's in quickcss
it shows when there's dupe things like two widths etc.
no, i'm just using default vs code css editor
seems like it doesn't for me
what in quick css it does but in vs code itself not
hmm maybe there's a setting or plugin you need
oh also better to use :last-of-type
oh wait it doesn't for me either
ah found it
here's a few small things i'd change with your current version
- needs the specificity to fix the emoji transition (slide in)
- :last-of-type is probably better than :nth-last-child() in this case to be more future proof
- In my non animated snippet I made a few months ago, I used :last-child at first, and then they added an invisible element after it of a different type, so i switched to :last-of-type
- I think you forgot to add opacity
- Avoids a :has(), so should be more efficient
- More efficient :has() that only has to search direct children instead of all descendants
- same as 4
(it's still really laggy because of the unavoidable :has() for the seperate emoji step)
i can no longer update the message since nitro is over and the message is to long ๐
Send the code as a .txt
I've seen other people do that
can't add it to a message i'm editing
should i do the @import-thing or just paste the links?
oh you should also put the customizable anim speed in the codeblocks
(still keep it in the import though)
ohh thanks
oh just found a small bug
add transform .4s cubic-bezier(.16,1,.3,1) to the transition
that's applied to the emojis by default, but the transition from your snippet overrides it, so they're not an animated
also the .button_f7ecac > div in the less anim version needs more specificity for the same reason
the icons are gone for me for some reason and i dont know why :/ it wsa fine yesterday
sorry i ate them
delete this line
yeah, you accidentally included the selector for all the buttons in the snippet for less
just deleting that line fixes it
btw should be fixed now
It works fine for the most part. I just found out that it kills the edit button in the status area of Userprofile.
I'm using the more animations one.
it doesn't for me?
Strange
Ik it's not my theme cause I disabled it and put the code in quickcss and it killed the edit button
I'm using the original more animations one.
the original?
I think if you try using that one it'd also kill the button for you
not the newest version?
i'm using the import
I use the more animations one cause the emojis and react images get in the way and prevent me from clicking links.
Wait
Nvm I'm so slow
I'll just use the one you made.
i'm using ```css
@import url("https://raw.githubusercontent.com/HeroOfDungeon/snippets/refs/heads/main/More Animations.css");
:root {
--animation-speed: 0.1s;
}
Wait
Interesting. I think I had code that did something similar. Cause this is way shorter than the one I removed.
OH I was using the outdated one. It makse sense now. Thank you for the help.
I'm a little slow is all.
I would recommend you use mine if you're worried about lag though
There's no llag
even while typing?
Oh. The previous version wasn't laggy. Strange. Looks like I'll use yours.
Yeah, no the new version kills discord. I'm using yours now. The old one worked really well. only thing is it killed that one button.
what was the old version?
It was basically this but there was no lag and it was a rather large bit of code.
can you copy it paste it in my dms
If I can find it again. I might have it saved somewhere on here
can't you just do ctrl+z
I can't cause in the theme I use I saved and closed it. It looks like it was one of the very few I didn't save in a text file.
ah
Unfortuante.
I really wished I saved it though cause there was no lag at all and the theme I use has a bunch of animated stuff in it.
this is still animated
I know it is.
the only downside to my version is that it doesn't seperate the emoji slide out
I just wanna know why the other is so laggy.
.buttonsInner__5126c > .button_f7ecac:not(:nth-last-child(2)) {
width: 0;
min-width: 0;
margin: 0;
padding: 0;
overflow: hidden;
transition: width 0.1s ease-out, padding 0.1s ease-out !important;
will-change: width, padding;
}
.buttonsInner__5126c:hover > :not(.separator_f84418, .button_f7ecac:has(div)),
.buttonsInner__5126c:has(
.button_f7ecac:hover ~ .button_f7ecac[aria-label*="Add"],
[aria-label*="Add"]:hover
) > .button_f7ecac:has(div) {
width: 24px;
min-width: 24px;
padding: 2px;
> .icon_f84418 {
width: 20px;
}
}
.separator_f84418 {
display: none;
}```
Wha?
It may be a bit different, but in general, this is the snippet (I have the More Animations one only).
Oh
.button_f7ecac:has(div), .button_f7ecac > div, /* Reactions */
.separator_f84418 /* Seperator */,
.button_f7ecac[aria-label*="Copy"], .button_f7ecac[aria-label*="Copy"] > svg, /* Copy */
.button_f7ecac[aria-label*="Unread"], .button_f7ecac[aria-label*="Unread"] > svg, /* Unread */
.button_f7ecac[aria-label*="Pin"], .button_f7ecac[aria-label*="Pin"] > svg, /* Pin */
.button_f7ecac[aria-label*="Raw"], .button_f7ecac[aria-label*="Raw"] > svg, /* Raw */
.button_f7ecac[aria-label*="Add"], .button_f7ecac[aria-label*="Add"] > svg, /* Add Reaction Selector */
.button_f7ecac[aria-label*="Reply"], .button_f7ecac[aria-label*="Reply"] > svg, /* Reply */
.button_f7ecac[aria-label*="Edit"], .button_f7ecac[aria-label*="Edit"] > svg, /* Edit */
.button_f7ecac[aria-label*="Forward"], .button_f7ecac[aria-label*="Forward"] > svg /* Forward */ {
width: 0 !important;
min-width: 0 !important;
margin: 0 !important;
padding: 0 !important;
transition: width 0.1s ease-out;
transition: padding 0.1s ease-out;
}
.buttonsInner__5126c:hover > :not(.separator_f84418, .button_f7ecac:has(div)),
.buttonsInner__5126c:has(.button_f7ecac[aria-label*="Add"]:hover, .button_f7ecac:hover > div, .separator_f84418:hover) > .button_f7ecac:has(div) {
width: 24px !important;
min-width: 24px !important;
padding: 2px !important;
> .icon_f84418 {
width: 20px !important;
}
}
.buttonsInner__5126c:has(.button_f7ecac[aria-label*="Add"]:hover, .button_f7ecac:hover > div, .separator_f84418:hover) > .separator_f84418 {
width: 1px !important;
margin: 2px 4px !important;
}```
This one is pretty much the same as that but alot less laggy
ngl i'd love to see a theme that brings back the old reaction animation that used to exist
yeah basically there used to be a small animation when you reacted to a message
what about not basically
do you have a video
i dont but there used to be some animation for reactions, and it was all the way back in 2020
think I found what you mean https://youtu.be/-w7XYr22UEw?t=522
In this video, we will learn how to send emojis and add reactions in our bot coded in python using discord.py (rewrite) in 2020.
If you have any suggestions for future videos, leave it in the comments below.
Some Useful Links -
My Discord Server- https://discord.gg/TXF3hBj
My Twitter - https://twitter.com/codewithswastik
My Instagram -...
unrelated to this snippet though
yeah true but it was the closest related to animations
shouldn't be too hard to implement though
Wait this might be good
You don't have to move your cursor to the left of the screen anymore
thank you.
I'm going to make an attempt to implement this. it gives me a headache for the motions
Edit got lost: Sorry I didnt mean to go here, wrong place , I hate threads
implement what?
oh this?
Wait I might have ended up in the wrong area. I'm trying to apply the remove avatar decorations being autoplay
but somehow I may have ended up in the wrong thread
Sorry I meant to go here, wrong place , I hate threads
thank you.
I'm going to make an attempt to implement this. it gives me a headache for the motions
@meager schooner
implement what?
@round chasm
yea tbh idek why they removed it, it looks much better tho idk how it would work with super reactions but im sure they'll find a way
oh :(
Now that brings me to smth else, wonder if anyones started it yet
You could do it
But can you talk about it in #๐จ-theme-development to keep this thread on topic
uhh my css skills are ass lol, its not the declarations or whatever its just im ass at design lol
well you can ask for help in #๐จ-theme-development
is it normal that more animations make my discord lagging
Yes
animations will make it lag a tiny bit, but I think this snippet uses :has()
:has() makes discord lag a ton
*:has(*) {
content: ""
}
thanks, that fixed my lag
What