Editing User:Toad64/HomepageGive feedback
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<h3> | <h3>Hero Card interaction with mouse</h3> | ||
<p>This javascript code adds a listener to the <code>.HeroCard</code> element to allow the card the mouse is currently hovered over to tilt based on the mouse's location, relative to the center of the card:</p> | <p>This javascript code adds a listener to the <code>.HeroCard</code> element to allow the card the mouse is currently hovered over to tilt based on the mouse's location, relative to the center of the card:</p> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
| Line 55: | Line 55: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<p> You can see this code in action by clicking [https://deadlock.wiki/User:Toad64/Sandbox?withJS=User:Toad64/common.js Here] (desktop required).</p> | |||
{{Deadlock Wiki/Heroes}} | |||
Using a similar code, this also works with the hero image card found on that Hero's wiki page: | |||
<syntaxhighlight lang="javascript"> | |||
add new java script block here, if needed | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{Infobox hero | |||
| key = hero_unicorn | |||
< | | voice_actor = <!--Natalie Lander (SPECULATION) --> | ||
| release_date = February 9 2026 | |||
| codenames = Unicorn, Pepper | |||
}} | |||