Comments on: Having fun with link hover effects https://css-tricks.com/having-fun-with-link-hover-effects/ Tips, Tricks, and Techniques on using Cascading Style Sheets. Sat, 06 Oct 2018 08:10:26 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Shaurya Shubham https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652558 Sat, 06 Oct 2018 08:10:26 +0000 http://css-tricks.com/?p=276507#comment-1652558 If we change the font swap effect with –

a:hover {
  font-family: Poppins, sans-serif;
  font-weight: 900;
}

and include Poppins instead of Creepster, It is a decent and interesting effect

]]>
By: Oksana Fortunato https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652553 Fri, 05 Oct 2018 17:17:49 +0000 http://css-tricks.com/?p=276507#comment-1652553 You are right Geoff, mostly of SVG attributes work in URL data, just need right syntax and it’s a bit messy to maintain. There are two contributed samples with applied ‘desc’, ‘g’, ‘use’, ‘text’, ‘textPath’. I don’t pretend to declare them as proper animation effects for links, it’s rather my CSS SVG case study :
One
Two

]]>
By: Boaz Rossano - 2Cents - the leading UX Design agency (Tel Aviv, Israel) https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652529 Thu, 04 Oct 2018 17:27:27 +0000 http://css-tricks.com/?p=276507#comment-1652529 Love it – I wish I could add it to my site on Wix…

]]>
By: SelenIT https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652432 Thu, 27 Sep 2018 18:15:19 +0000 http://css-tricks.com/?p=276507#comment-1652432 In reply to SelenIT.

Unfortunately, the code in @support not(...) {} block will have no effect in browsers that don’t support @support itself, but unconditional color: transparent will work nearly everywhere:(

]]>
By: Geoff Graham https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652427 Thu, 27 Sep 2018 14:21:59 +0000 http://css-tricks.com/?p=276507#comment-1652427 In reply to SelenIT.

Yep, for sure! That would totally be the best way to go if planning to use that example in production.

The version in this post does have a fallback for browsers that do not support the outline, but perhaps that conditional block could also include swapping the color to something more supported.

]]>
By: SelenIT https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652425 Thu, 27 Sep 2018 09:00:37 +0000 http://css-tricks.com/?p=276507#comment-1652425 Nice and inspiring examples! But… wouldn’t it be better to use -webkit-text-fill-color: transparent instead of color: transparent in the outlined text example, leaving the plain old color alone as the reliable fallback? What is the use of making text invisible for all, including browsers that don’t support non-standard (though included in the so called “Compatibility standard” by WHATWG) decoration possibilities?

]]>
By: Benedict Forrest https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652344 Mon, 24 Sep 2018 22:59:36 +0000 http://css-tricks.com/?p=276507#comment-1652344 You could animate the background image in the second example, by animating the background-position value. Like so:

@keyframes shift 
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: -20px bottom;
    }
}

a:hover {
    animation: shift .3s linear infinite;
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/9632/squiggle.svg");
    background-repeat: repeat-x;
    background-size: 20%;
    border-bottom: 0;
    padding-bottom: .3em;
    text-decoration: none;
}
]]>
By: Geoff Graham https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652340 Mon, 24 Sep 2018 20:50:14 +0000 http://css-tricks.com/?p=276507#comment-1652340 In reply to Stephen J Cronin.

Heck yeah, this is great context! Thanks for sharing — and really nice work. :)

]]>
By: Geoff Graham https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652339 Mon, 24 Sep 2018 20:48:30 +0000 http://css-tricks.com/?p=276507#comment-1652339 In reply to Rob.

Most mobile browsers ignore hover effects or will activate them on touch, depending on the link behavior. I wouldn’t expect any of these experiments (or many other hover effects) to translate well into mobile.

That said, I do remember Samsung doing something several years ago that allowed hover effects when actually hovering a finger over an object.

]]>
By: Geoff Graham https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652338 Mon, 24 Sep 2018 20:43:41 +0000 http://css-tricks.com/?p=276507#comment-1652338 In reply to Oksana Fortunato.

Hey Oksana! Good question. I’m not sure I can think of a reason to add those attributes, but I suppose it can’t hurt! Although this example made me think about the use of the text tag to get content into a div as an alternate to the content property.

]]>
By: Stephen J Cronin https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652335 Mon, 24 Sep 2018 17:46:01 +0000 http://css-tricks.com/?p=276507#comment-1652335 Great write up! I was actually the author of The Outline’s squiggle code. I think the way you broke down the code is pretty spot on. The idea of this method came out of some of the requirements I set for what we needed to do. We wanted the squiggle to be able to:

underline text across 2 lines
animate on hover
underline text of different sizes
have the ability to be any color

SVG would allow for dynamic sizing and color. Putting it as a background-image would allow for multiline squiggles. As for the css transition backed into the SVG, that was quite experimental. It worked pretty well and so that is the solution we ended up rolling with for that.

]]>
By: Niall Flynn https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652334 Mon, 24 Sep 2018 16:15:17 +0000 http://css-tricks.com/?p=276507#comment-1652334 Toastie! The old MK game effect is great http://rubentd.com/img/toasty.png

]]>
By: David Carrillo https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652333 Mon, 24 Sep 2018 16:02:10 +0000 http://css-tricks.com/?p=276507#comment-1652333 What about bouncing letters? with some css animations that would be cool.

]]>
By: Eliana Bryson https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652329 Mon, 24 Sep 2018 12:36:11 +0000 http://css-tricks.com/?p=276507#comment-1652329 CSS is still very powerful and many developers have found unique ways of doing wonders through CSS. Most of us used to think that it is old language for advanced formatting of website but still some developers have proven them to be wrong.

]]>
By: Rob https://css-tricks.com/having-fun-with-link-hover-effects/#comment-1652328 Mon, 24 Sep 2018 11:49:28 +0000 http://css-tricks.com/?p=276507#comment-1652328 Amazing! But what about mobile?

]]>