I was visiting this theme's demo here and the animation in the footer really caught my eye. It had me thinking, and I realised it makes sense to have an animation on hover.

Maybe we can "steal" this and get it in Social Auth :) https://cgit.drupalcode.org/blogon-responsive-theme/tree/css/style.css

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MaskyS created an issue. See original summary.

ankitjain28may’s picture

I would like to work on this feature.
Do you have any image file like this "http://demo.zymphonies.com/free-theme/blogon-responsive-theme/index/site..." so i will make it animate as you required ?

ankitjain28may’s picture

Status: Active » Needs review
FileSize
679 bytes

I have tried to animate the Auth icons but these are not as similar as in the demo.

MaskyS’s picture

Status: Needs review » Needs work

Good job, but the grey does not persist while the cursor is hovering on the logo. i.e it returns back to coloured version once the animation has ended. Can we fix that?

ankitjain28may’s picture

Ok, Yes, It can be done.

MaskyS’s picture

FileSize
1.42 KB

Well, added a line to deal with it. Let's see what other maintainers think of this.

MaskyS’s picture

Status: Needs work » Needs review
dbjpanda’s picture

#6

+++ b/css/auth-icons.css
@@ -7,4 +7,27 @@
+    filter: grayscale(1);  ¶

Just a nitpick. Remove the whitespace at the end.

MaskyS’s picture

FileSize
675 bytes

Good catch. There was also an unrelated fix in the .install file. We should be good now.

MaskyS’s picture

FileSize
1.24 KB

Attaching interdiff.

  • gvso committed 09683fd on 8.x-2.x authored by MaskyS
    Issue #2945536 by MaskyS, dbjpanda: Add animation to Social Auth icons...
gvso’s picture

Status: Needs review » Fixed

Thanks!

+++ b/css/auth-icons.css
@@ -7,4 +7,26 @@
+@keyframes grey {
+  from {
+    webkit-filter: grayscale(0);
+    filter: grayscale(0);
+  }
+  to {
+    webkit-filter: grayscale(1);
+    filter: grayscale(1);
+  }
 

There was a missing curly bracket here!

ankitjain28may’s picture

Thanks :)

ankitjain28may’s picture

@gvso Should i get the credit for this as i have submitted the first patch ( https://www.drupal.org/files/issues/Add-animation-to-Social-Auth-icons-2945536-2.patch). Did i submit the wrong patch ?

gvso’s picture

@ankitjain28may, for some reason, your patch doesn't appear in this issue. Are you sure you uploaded it in the correct issue? Drupal.org didn't put your name in the commit message example for a reason.

MaskyS’s picture

ankitjain28may’s picture

@gvso My comment was not visible because my account was not confirmed at the time of patch submission.

gvso’s picture

Sorry, I didn't even see that patch nor your username in this issue. That's why I didn't add you in the commit message.

ankitjain28may’s picture

@gvso Ok so is there anything that can be possible now ?

gvso’s picture

Well, you can work on issues that requires small changes such as #2947737: Implement new methods in OAuthManager

dbjpanda’s picture

@ankitjain28may Seems like you have been fighting for the credit from the first day. :) Well you should concentrate on more issue.
@gvso I can also see the patch here https://www.drupal.org/files/issues/Add-animation-to-Social-Auth-icons-2... so you can revert the commit with a new commit message and a credit to @ankitjain28may . Lets welcome and encourage them to contribute more. Cheers.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.