On game card hover = show secondary image or video #149
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a user hovers over a game card, the first image disappears and shows the second image set in place (or video) if available.
We have this code:
Which would then turn into this:
or
Where if there is a an extra image link (a new fourth column/variable in the games DB files) or a video link (fifth column/variable), then it would give that extra
<img>
or<video>
and the extra class 'cardGameMainWrapper2'.However, if there isn't, then it would remain as it currently is:
(I'll be adding the CSS for the effects)
Note: The csv files would need to be updated to add the two new variables ('secondary box art' and 'clip' let's say). I can handle that when it comes to it.
Note: Keep in mind that the csv file may not have extra commas after the initial 2 commas, so hopefully that can be worked out, but if it can't, I'll see if i can re export everything with those needed extra commas