-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3D lift animation] Raise hovered card above adjacent cards #2589
Changes from 1 commit
2b1678b
777fa46
9131f00
fc40e5e
0cdd592
3ac04c4
a427f0e
459227f
0a95ba2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3353,6 +3353,11 @@ details-disclosure > details { | |
transform: rotate(0.5deg); /* Less intense rotation for collage items. */ | ||
} | ||
|
||
.animate--hover-3d-lift .grid__item:hover, | ||
.animate--hover-3d-lift .collage__item:hover { | ||
z-index: 1; /* Make sure the hovered card is the topmost card. */ | ||
} | ||
kjellr marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For general shadows we're applying some padding to account for the shadow spread. Which we're not with this and it can cut off the shadow, specifically on sliders: video Something similar could be useful to look into. Maybe as a follow up for the next release. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think it's a huge deal. But ideally it doesn't happen. I think one way to go about it, would be to apply on the I'n not seeing a negative impact in adding the property so far. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, good call. Added in 0a95ba2 — I haven't found any negative repercussions either. I could scope it to just |
||
|
||
.animate--hover-3d-lift .card-wrapper .card--shape.card--standard:not(.card--text) .card__inner { | ||
box-shadow: none; | ||
transition: transform var(--duration-long) ease, filter var(--duration-long) ease; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
applying it to
grid__item
scares me a little. It feels to generic/general. Lots of elements that aren't getting that effect I believe would still be using this class.So maybe we could be more specific at targeting containers of elements that do have the 3d lift applied to them 🤔
A couple ways we could go about it:
collection-list__item
,.product-grid .grid__item
,.complementary-slide li
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I targeted more specific classes in 777fa46. I think I got them all: product grids, collection lists, collage items, blog articles, and complementary products. Let me know if you can think of any other contexts we should hit.