Blur just on text links NOT on linked images
-
Re: Blurry links
Hello,
i would love to have the blur effect for text links only, but it seems like the code is also making my linked images blurry. is their a way to avoid this?
i am using following code i guess i found in the forum as well:
a { color: #000000; transition: ease-in-out 0.2s; } a:hover { color: #000000; -webkit-filter: blur(10px); /* Safari */ filter: blur(20px); transition: ease-in-out 0.2s; }Whoever can tell me will make me very happy :)
Have a great day!
Cheers, Max
-
-
Dear Max
@MaxWinter
I think i can help 🌝
When a Link has an image inside of it, we would have the 'nesting'a img{ //insert css here }
But in most cases with a link and text - the link would have a
spanelement inside wrapping the text:
a span{ // insert css here }Because if this we can target only the links that have
spanwithin therefore only text links, e.ga span { color: #000000; transition: ease-in-out 0.2s; } a span:hover { color: #000000; -webkit-filter: blur(10px); /* Safari */ filter: blur(20px); transition: ease-in-out 0.2s; }
Best wishes Max, have a great weekend
Richard
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login