Skip to content

Commit

Permalink
fixup! feat(card): add interactive 3D tilt effect on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiarokh committed Nov 26, 2024
1 parent 385653c commit d2249cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/components/card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ limel-action-bar {
}

// The 3D effect
@include mixins.limel-3d-hover-effect-glow(
section,
var(--card-border-radius, $default-border-radius)
);
limel-3d-hover-effect-glow {
border-radius: var(--card-border-radius, $default-border-radius);
}

:host(limel-card) {
@include mixins.parent-of-the-3d-element;
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class Card {
{this.renderValue()}
{this.renderActionBar()}
</div>
<div class="limel-3d-hover-effect-glow" />
<limel-3d-hover-effect-glow />
</section>
</Host>
);
Expand Down

0 comments on commit d2249cc

Please sign in to comment.