Comments on: Adam Argyle’s Sick Mouse-Out CSS Hover Effect https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Mon, 29 Aug 2022 14:32:37 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: mustafa uncuoglu https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1796889 Mon, 29 Aug 2022 14:32:37 +0000 https://css-tricks.com/?p=360113#comment-1796889 –bg-h: what does it mean?

]]>
By: Gary Stevens https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1794143 Tue, 22 Feb 2022 14:14:46 +0000 https://css-tricks.com/?p=360113#comment-1794143 Oooo love this. Just wondering if this could change the font colour at the same time to get a fully A11y contrast of colours, while still looking awesome.

]]>
By: Tieskevo https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1791515 Mon, 14 Feb 2022 09:28:14 +0000 https://css-tricks.com/?p=360113#comment-1791515 In reply to Sloan.

Alternatively, you can use a before. And swap the orientation

]]>
By: Mike Jones https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1789236 Sat, 05 Feb 2022 05:15:12 +0000 https://css-tricks.com/?p=360113#comment-1789236 In reply to Some jerk.

Mr Graham,

Haters gonna hate. I really enjoyed the article.

]]>
By: Rene https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788456 Fri, 21 Jan 2022 13:18:38 +0000 https://css-tricks.com/?p=360113#comment-1788456 Can I challenge you to change the (font) color synchronously?!

]]>
By: Geoff Graham https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788272 Mon, 17 Jan 2022 15:20:26 +0000 https://css-tricks.com/?p=360113#comment-1788272 In reply to Ana Tudor.

Amazing stuff as always, Ana! Thanks for sharing.

]]>
By: Ana Tudor https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788258 Sun, 16 Jan 2022 16:19:07 +0000 https://css-tricks.com/?p=360113#comment-1788258 I did something similar, but diagonally.

Explained in detail in this article from 2018.

The “animate transform, but abruptly flip transform-origin” tactic can help with a lot of cool effects in 3D as well, like in this series of demos from early 2016:

]]>
By: Jen https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788094 Tue, 11 Jan 2022 17:21:03 +0000 https://css-tricks.com/?p=360113#comment-1788094 In reply to Some jerk.

Seconding that I’d read it if you wrote up an article talking us through how to tighten this up! I’d love to use it and I’d REALLY love for it to be as clean as possible.

]]>
By: Brent Larson https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788092 Tue, 11 Jan 2022 15:08:02 +0000 https://css-tricks.com/?p=360113#comment-1788092 As others have mentioned, using background with background-position is definitely the way to go. I wrote a post about 5 different variations that folks might find helpful https://nerdcowboy.com/blog/sliding-underlined-links/

]]>
By: Geoff Graham https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788047 Mon, 10 Jan 2022 15:50:36 +0000 https://css-tricks.com/?p=360113#comment-1788047 In reply to Sloan.

Ha, yeah. My gut reaction felt right but I decided on a different approach when my styles started getting messy. And, of course, I started realizing where I went wrong with the background approach when I was already waist-deep in transform. That’s the funny thing about hindsight, but also the great thing about CSS — so many ways to achieve similar things. What’s even funnier is that I landed on the same approach Adam did!

]]>
By: Glenn https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788037 Sun, 09 Jan 2022 23:26:11 +0000 https://css-tricks.com/?p=360113#comment-1788037 Nice – I suspect you could do it with inset box-shadows too. The only downside there is you have to set a magic number for how wide the box-shadow goes.

]]>
By: Sloan https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788018 Sun, 09 Jan 2022 15:18:33 +0000 https://css-tricks.com/?p=360113#comment-1788018 Funnily enough, you can achieve the original effect using just background transitions!

The trick is to use a transition on background-size, but not background-position. This way, you can change the background position before the background size animation even begins, and the user will never be able to tell, because the background will always be either completely filled in or completely empty! :D

Codepen: https://codepen.io/sloanfinger/pen/XWePVGj

]]>
By: Geoff Graham https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788012 Sat, 08 Jan 2022 18:03:18 +0000 https://css-tricks.com/?p=360113#comment-1788012 In reply to Some jerk.

Cool dude. Maybe you can write your own post walking through your thought process to make it better. I’d read that.

]]>
By: Some jerk https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1788002 Sat, 08 Jan 2022 10:23:19 +0000 https://css-tricks.com/?p=360113#comment-1788002 I mean, there are LOTS of issues with this.

The link basically has to be a button. Having it in a block of text breaks it,especially if the link text wraps on to a new line.

If you hover over it quickly repeatedly, the transition jumps to the end before restarting.

… Using borders, or better yet, inset box shadows and expanding their size might help fix the first issue.

Better (tighter) transition statements will probably help the second issue.

]]>
By: Adam M https://css-tricks.com/adam-argyles-sick-mouse-out-css-hover-effect/#comment-1787999 Sat, 08 Jan 2022 06:10:39 +0000 https://css-tricks.com/?p=360113#comment-1787999 In reply to Justin.

I appreciate how this article shows both the thought process and, more importantly, the parts that didn’t work.

A lot of authors like to be the smartest person in the room where the answers just come to them in divine inspiration, so it’s refreshing to see that someone shares my “throw stuff at the wall and fail forward” method I use.

]]>