r/Locodol • • Dec 22 '14

[Meta] Comment faces

So right now there is is a whole one comment faces. I don't think it's engouth and I propose we make it a whole two.

I tried to make it in about the same format as the existing face. It's Nanako being her usual calm self.
I took the image from the openning, had to remmove the back gound and get everyone closer.

I don't know if we can also do faces with gifs, but just in case, I aslo made it animated.
And as a bonus track Mitsugu going round, slow or fast.

4 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/UltimateEpicFailz Dec 23 '14 edited Dec 23 '14

Code for the 4-frame version, but only has two, hence the flashing :/

1

u/Lke590 Dec 23 '14

So it seems you needed to double the sprite sheet. So I take it there is a problem with 1 step animations.

1

u/Lke590 Dec 23 '14 edited Dec 23 '14

Ok i got it.

a[href^="#flail"]:hover{
-webkit-animation:flail 0.2s steps(3) infinite;
-moz-animation:flail 0.2s steps(3) infinite;
animation:flail 0.2s steps(3) infinite;
background:url("//b.thumbs.redditmedia.com/qhkoC_CaSXI1UL9nQHYXx4jUht0MIoaeX00cH09K14I.png") 0 -600px repeat-y
}

You need to shorten the time to 0.2 seconds. And switch from no-repeat to repeat-y to avoid any flashing.
The repeat turns the 2 frame strip in a arbitrary length strip at no bandwidth overhead.

1

u/UltimateEpicFailz Dec 23 '14

Ah, I see. Thanks for correcting me!