DEV Community

loading...
Cover image for 100 underline/overlay  animations | The ultimate CSS collection 🥇

100 underline/overlay animations | The ultimate CSS collection 🥇

Temani Afif on March 16, 2021

Get tired searching animations for your menu items and links? Search no more! Here is a list of more than 100 different animations. From the simple...
pic
Editor guide
Collapse
krishan111 profile image
Krishan111 • Edited

You are really hardworking @afif 👍

Collapse
afif profile image
Collapse
jacqueliner profile image
Jacqueline R. Swearingen

Amazing css collection. Thanks!

Collapse
afif profile image
Temani Afif Author

you're welcome. Wait for more collection like this ;)

Collapse
jbalagnaranin profile image
Jérémie Balagna-Ranin
The Inverted
The below doesn't work on Firefox due to a known bug
Enter fullscreen mode Exit fullscreen mode

Tested just now on Mac OS with Firefox 86.0.1, and it works well ;)

Otherwise, Thanks a lot for the ideas... I just like the inverted :D

Collapse
afif profile image
Temani Afif Author

good, probably the bug occur only on Windows OS then.

Collapse
icecoffee profile image
atulit023

I'm loving it!
There are some people who can use every single animation as a different post for a series actually and then there's this guy.
Great minds

Collapse
afif profile image
Temani Afif Author

thanks :) will probably create more posts like this in the future ;)

Collapse
miteshkamat27 profile image
Mitesh Kamat

That is indeed commendable. So many variations for a single state.

Collapse
conradsollitt profile image
Conrad Sollitt

Wow incredible job Temani!!

I think I'll try out some of these in apps I'm developing on at work soon! Probably will try or at least consider these for future public facing sites I work on in the future as well.

My favorite are the 3D and Fancy ones at the bottom but I think for basic Db Web Apps I might use "The Basic" or "The All Sides" as I feel they provide just enough visual effects for a user to think "that's nice" but not distract from the site or task at hand.

Collapse
genevievecurry profile image
Genevieve Curry

Great job on putting this collection together!

I'm rather partial to The Double and The 3D :)

Collapse
dragon profile image
D7460N

Thanks for the time and effort you put into this fantastic list!

How do you get the animation to wrap with the link text?

Thanks again!

Collapse
afif profile image
Temani Afif Author

well, most of them are not meant to work on wrapped text. I made them for menu item, short link, buttons, etc so only one line ... if you have a specific animation you want to wrap with text I can help you with

Collapse
dragon profile image
D7460N

Thank you! "The Infinite" #2 animation would look nice when wrapping with text IMHO. Thank again!

Thread Thread
afif profile image
Temani Afif Author

here is with wrapping : jsfiddle.net/que6njpo/ .. you simply need to remove the display:inline-block ;)

Collapse
dav3rs profile image
⚜Dave.rs⚜

It is really impressive. Could you make youtube tutorials explaining the technique you use to achieve these effects? I would like to learn.

Collapse
afif profile image
Temani Afif Author

Will think about this in the future. I never made tutorial videos but would be good to start doing it ;). In the meantime, If you have a question or you need a clarification about a particular effect I can explain you via comment

Collapse
canbax profile image
yusuf

very nice archive for animations.

Collapse
phil_lgr profile image
Phil Léger

Massive, thanks for sharing!

Collapse
oliviercreativ_74 profile image
Démontant

Thanks :D

Collapse
moaaz_ibrahim profile image
moaazib123

Wow
Great work 👏

Collapse
fredperes profile image
Fred Peres

Wow! Nice work!

Collapse
bigol profile image
José Santos Silva

Very good work.

Collapse
gksvg profile image
Guatam Kumar

Awesome Bro

Collapse
nqtimoguing profile image
nqtimoguing

This article brought me here ;)
Awesome!

Collapse
marcellothearcane profile image
Collapse
shahstavan profile image
Mr.Shah

Man hats-off you. I loved the efforts you made. Thanks a lot Man👍🏻

Collapse
asksock profile image
Ngô Quang Đạo

Such an awesome stuff!
Amazing! Good job!

Collapse
geminii profile image
Jimmy

All these effect are really awesome. So nice work. Congratz 🎉

Collapse
z2lai profile image
z2lai

What in the world, animations with just background and background-position? That's the most ingenious CSS trick I've ever seen. And all of these effects are so slick. You sir are a genius!

Collapse
afif profile image
Temani Afif Author

Thanks :)
This is only a small portion of what CSS can do. I still have more magic to show in future articles ;)

Collapse
signo profile image
L

Awesome work, love the Fancy #4 :)

Collapse
atabak profile image
atabak

Wow

Collapse
xuannguyen291020 profile image
xuannguyen291020

Thanks for your sharing! <3

Collapse
dothebart profile image
Wilfried Goesgens

we want a Version that can play arkanoid! ;-)
Cool stuff!

Collapse
afif profile image
Temani Afif Author

well, why not. A crazy person like me can come with such crazy idea :) maybe in the next collection, stay tuned ;) [yes there is another collection coming! ]

Collapse
afif profile image
Temani Afif Author

Here you go with another list: dev.to/afif/100-more-underline-ove...

Arkanoid is there! :)

Collapse
kirzin profile image
KirzinCss

wow this is awesome thank u for this

Collapse
zeked profile image
Zeke-D

This is gorgeous. Thanks so much for this resource. If i had to pick a favorite, i think there’s something beautiful about inverted #6.

Collapse
saviomartin profile image
Savio Martin

This is amazing. thank you!

Collapse
aalphaindia profile image
Pawan Pawar

Wow, so nice!

Collapse
graykim profile image
gray-kim

awesome! Thanks.
I like 'The All Sides #6'

Collapse
andrewbaisden profile image
Andrew Baisden

Good job there is a lot to be learned here.

Collapse
dwighthaul_52 profile image
Paul Hubert

Amazing, it's fun how IHM can be "alive" with few lignes of css

Collapse
dreamcreatordev profile image
ryanB

Excellent

Collapse
simus51 profile image
simus51

Love these! And the second collection. Thanks so much.

Collapse
zombierobo profile image
Hasmukh Suthar

I’m not sure if it’s only me but I can’t seem to see previews of any of the animations in the post body on my ios chrome. It’s a good post Thank you, I’m gonna check it out on my computer :)

Collapse
afif profile image
Temani Afif Author

are you able to see the "Hover me" text? or you cannot see the codepen preview at all?

Collapse
zombierobo profile image
Hasmukh Suthar

Everything under heading ‘The Unexpected’, ‘The Rounding’... etc

Collapse
iamrohitsawai profile image
Rohit Kiran Sawai

How can you do such a cool things?

Collapse
afif profile image
Temani Afif Author

If you want to do it then you can do it :)

Collapse
akamosthappyman profile image
zhang

Amazing!!!

Collapse
dome68 profile image
Domenico

Nice work!

Collapse
aniketmde profile image
Aniket Deshbhratar • Edited

why search effects on google after this post :D
thanks man

Collapse
ardianta profile image
Dian

awesome, thank you for sharing

Collapse
capscode profile image
capscode

nice collection, really :)

Collapse
haaami01 profile image
G. Szabi

thanks for the tips

Collapse
r3zu3 profile image
Renzo Zue

Amazing, i love it

Collapse
mujeex profile image
mujeex

Awesome man! Reminded me just how little I know css😅

Collapse
kuldeepkumar9935 profile image
kuldeepkumar9935

It's really a great work

Thank you for this eg..

Collapse
lam442 profile image
Luis

Thank you! This is great

Collapse
recitomartins profile image
Martins Gouveia

Very good! Very good and useful. You must have done a lot of work, congratulations.

Collapse
singhkunal2050 profile image
Kunal SIngh

loved the varitions

Collapse
diogoxiang profile image
Diogoxiang

very nice!
Amazing css collection. Thanks!

Collapse
zippytyro profile image
Shashwat Verma

Damn, how much did you spent making this?

Collapse
afif profile image
Temani Afif Author

I don't remember exactly because each time I get an idea I add it to the collection until I reached the 100 but I would say around 1 week and a half from when I got the idea to the release of the article

Collapse
zippytyro profile image
Shashwat Verma

Love the efforts you're putting in

Collapse
franklinuopeople profile image
Franklin-uopeople

Thanks for your the hard work and for sharing that with the community!

Collapse
elvisduru profile image
Elvis Duru

This is cool stuff @afif . Thanks for sharing!

Collapse
vivirenremoto profile image
Miquel Camps

awesome! good job Temani :)

Collapse
chema profile image
José María CL

Wow, so nice!

Collapse
aglamadrid19 profile image
Collapse
funbeedev profile image
Fum

Amazing collection. Thanks!

Collapse
red2021 profile image
Redwei🇨🇳

这个很棒!! This is great! !

Collapse
danielignatov profile image
Daniel Ignatov

Amazing stuff!

Collapse
simida0852 profile image
Jerusalems

Amazing css collection. Thanks!

Collapse
jayarghargh profile image
Justin R

i <3 these! Thanks for sharing

Collapse
nove1398 profile image
nove1398

This is awesome, well done

Collapse
7ovo7 profile image
Marco Colonna

I like learn CSS and I like this post 🙂

Collapse
jadenconcord profile image
Jaden Concord

This is the best animation/hover article

Collapse
markhu profile image
Mark • Edited

Most of these are about as obnoxious as the infamous old <flash> attribute. But I do like Rounded #5. That's feasible in a real app.

Collapse
alexbrasileiro profile image
Alex Brasileiro

fucking amazing work Temani... 😱

Collapse
chaveamin profile image
chaveamin • Edited

What's the variable value for --p and --d
and I assume we can't add a border radius to the "All Sides"

Collapse
afif profile image
Temani Afif Author

I am using the variables to make the code shorter so for example instead of using background-position:0% 100% and on hover I make it background-position:100% 100% I use a variable inside the first definition to have var(--p,0%) 100% and later I simply change the value of the variable and make it --p: 100%.

And no, we cannot use border-radius. I will probably prepare another list with radius ;)

Collapse
jaybear profile image
Jens
  • The Fading (2)
  • All Sides (5) ... may be both contrasted: blue text & black frame or opposite! And: THANKS for sharing! ;)
Collapse
abdulkalam1233 profile image
Abdul kalam Shaik

I am not a CSS guy but this article made me think think about becoming a CSS dev.

Thanks @afif

Collapse
arorasumit profile image
Sumit Arora

Love them looks great. Nice work 😀

Collapse
thepingouinface_19 profile image
Thepingouinface

Thank you !! 🔥

Collapse
kvind profile image
kvind

Wow, really impressive!
Great job! :-)

Collapse
zhoiruddin profile image
Zhoiruddin

Nice. Thx

Collapse
conteahnl profile image
ConteaHNL

Amazing work. Thanks for sharing. The only problem with these effects is that they rarely works when the text breaks across multiple lines

Collapse
afif profile image
Temani Afif Author

It's not a problem, I explicitely made them to work on menu items, short links, button, etc so only one line of text

Collapse
heizenburg profile image
Thato Sello

Great job brother...

Collapse
andrewbaisden profile image
Andrew Baisden

Agreed its pretty awesome.

Collapse
kosovych profile image
Yaroslav Kosovych

Looks like you have very creative designer in you project