# Steam Trading Card Hover Effect

**URL:** <https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 15, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907 "2021-09-15T14:33:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![syhdesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/syhdesign/32/973459_2.png) [@syhdesign](https://forums.unrealengine.com/u/syhdesign)\
**Post date:** [September 15, 2021, 2:33pm UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/1 "2021-09-15T14:33:11Z")

</div>

Hello Everyone;

Do anyone know that how to achieve that card hover effect with blueprint in widget?

Sample link html+css+js code down below  
https://codepen.io/nelsonr/embed/preview/WNQaZPb?default-tabs=js%2Cresult&height=300&host=https%3A%2F%2Fcodepen.io&slug-hash=WNQaZPb

Original steam card hover effect sample:  
 ![steamcard](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/2/623805395217f7dee4e5cfc83a6989c32c01e89a.gif)

I just came so far with zoom in effect when hover mouse over widget button like here: ![cardzoom](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/c/dc50218015133381add56db19ec2a608218d7a38.gif)

Please let me know if you know how to do it!  
Cheers  
2021-09-14T22:00:00Z

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 16, 2021, 8:43am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/2 "2021-09-16T08:43:10Z")

</div>

To get the tilting effect + shadow, you’d need to switch to widget components. Is it is safe to assume that last anim is using just 2d widgets?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 20, 2021, 9:30am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/3 "2021-09-20T09:30:20Z")

</div>

If there’s interest, I can post the setup for this:

Cooking was fun but the kitchen’s a mess! I need motivation to clean it up. She ain’t pretty on the inside, atm.

---

<div class="post-metadata">

**Author:** ![syhdesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/syhdesign/32/973459_2.png) [@syhdesign](https://forums.unrealengine.com/u/syhdesign)\
**Post date:** [September 20, 2021, 9:46am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/4 "2021-09-20T09:46:18Z")

</div>

Omg man of course I’m interested in, please share that messy kitchen we can learn a lot from it, looking really great :), btw sorry for late reply, just I get time to respond. Thank you very much @Everynone for your interest about that topic! Looking forward to hear from you…

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [September 20, 2021, 9:54am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/5 "2021-09-20T09:54:58Z")

</div>

That looks awesome! I’d be interested too! 🤓

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 20, 2021, 3:08pm UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/6 "2021-09-20T15:08:47Z")

</div>

- `aCardBoard` - an actor that spawns `a3dCard` actors and hangs them on the wall; also holds onto a Pawn via a CAC in case the board gets huge and we need to pan around (not implemented)

- `a3dCard` - holds onto the `WC_myCard` widget component, currently does nothing and is potentially redundant; if more complex functionality needs adding, it could go here

- the extended `WC_myCard` widget component does most of the heavy lifting and holds onto the `wCard` widget; can be added to any actor and will use its transform

- the `wCard` is the 2d widget, it dispatches user interaction to the owning widget component;  
in short: we check where in local space of the widget the cursor is and tilt the owning component by the appropriate value. If tilting is not needed, the component interpolates back to default position / rotation.

- the widget component’s material is a modified WidgetPassThrough - that’s where roughness is piped in for the _foil_ effect. This should be more much more graceful, ofc and is totally fake atm. This element needs the most work & my material game is weak 😑

Added comments where I felt like it ;p

* * *

This is not a plug & play thing. Do treat it as a proof of concept - but it does seem like a good direction to take.

Project link:

> **[tiltCard.zip](https://drive.google.com/file/d/1D75ePWCXbOpsFBbtAke2RRFjVOBI-pdP/view?usp=sharing)**
>
> Google Drive file.

I’ll happily handle questions I know answers to.

---

<div class="post-metadata">

**Author:** ![Pantoth](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pantoth/32/1194538_2.png) [@Pantoth](https://forums.unrealengine.com/u/Pantoth)\
**Post date:** [September 21, 2021, 11:46am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/7 "2021-09-21T11:46:43Z")

</div>

Thank you! \<3

---

<div class="post-metadata">

**Author:** ![syhdesign](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/syhdesign/32/973459_2.png) [@syhdesign](https://forums.unrealengine.com/u/syhdesign)\
**Post date:** [September 22, 2021, 7:17am UTC](https://forums.unrealengine.com/t/steam-trading-card-hover-effect/250907/8 "2021-09-22T07:17:53Z")

</div>

Thank you very much! Love it…

> > (+karma)\>\> @Everynone
