From 02b06f4f6f5af4070a6733aef1b09945b510e38a Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 15 Jan 2020 15:32:19 +0100 Subject: [PATCH 1/4] Add profile hover animation --- src/app/components/group/group.component.sass | 2 + .../components/profile/profile.component.html | 7 +++- .../components/profile/profile.component.sass | 40 ++++++++++++++----- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/app/components/group/group.component.sass b/src/app/components/group/group.component.sass index 34fa7d0..0de5d38 100644 --- a/src/app/components/group/group.component.sass +++ b/src/app/components/group/group.component.sass @@ -49,6 +49,8 @@ $mat-card-header-size: 100px !default border-radius: 50% flex-shrink: 0 background-size: cover + &:hover + height: 200 // Makes `` tags behave like `background-size: cover`. Not supported // in IE, but we're using it as a progressive enhancement. object-fit: cover diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html index 7dad600..892cc83 100644 --- a/src/app/components/profile/profile.component.html +++ b/src/app/components/profile/profile.component.html @@ -3,7 +3,12 @@ -
+
+ + camera_alt +
+ + {{userProfile.username}}