Change the look on hover
Give something a different look while someone points at it. Give a card a hover version in Styles, change its background and add a soft shadow, then save it as a hover style and reuse it on another card, on the Paperlane template.
Steps
- Open the Paperlane template if you’d like to follow along.
- Hover changes only show in Preview. The buttons already dim, but the cards don’t react yet.
- Select the card, click the lightning bolt and open Styles. Add a hover version, a focus version, or any other version a behavior can switch to.
- Pick a hover style from the brand kit, or Create new for a copy marked Hover. Changes to it show only while someone points at the card.
- Soft or Flat, Outside or Inside, a size from SM to LG, and how strong it is with Intensity.
- Save turns the hover version into a hover style. Other cards can pick it, and they stay linked to it.
- Point at each card to see it turn white with a soft shadow, and move away to see it go back.
Read the full transcript
Last time, we made things move when the pointer rests on them. This time, let's change how something looks instead, like its background or its shadow. I'm on Paperlane, a template for a project planning app, and we'll work on these pricing cards.
First, a quick look in Preview, since hover changes only show there. The buttons already react: point at one and it dims a little. The cards don't do anything yet, so let's head back and change that.
I'll select the Business card and click the lightning bolt. Last time we used Behavior. This time it's Styles, which is how something looks at different moments.
Now it's just this card on its own. On the left is how it normally looks. On the right, I can add other versions. A hover version shows while the pointer is over it. A focus version shows when someone reaches it with the Tab key. And Add variant is for any other version a behavior can switch to.
I'll add a hover version. The first three are hover styles from the brand kit. Button Press is the one the buttons use. I'll make a new one.
Here's a copy of the card, marked Hover. Changes to it only show while someone points at the card. In the edit panel, the background is Mist, a light gray. I'll make it Paper, which is white.
Now a shadow. Flat has a hard edge, and Soft fades out, so I'll take Soft. Outside sits around the card, and Inside looks pressed in. I'll keep Outside. Size is how far it spreads, so I'll go large, and raise the intensity a little.
Save turns this into a hover style of its own. I'll double-click its name and call it Plan card.
Now the other cards can use it. I'll go back to the page, and this time I'll select the Free card. Then I open Styles again, and Plan card is waiting in the list. One click, and this card has the same hover. And because it's linked, if I change Plan card later, every card that uses it changes too.
Let's see it. In Preview, I'll point at the Free card, and it turns white with a soft shadow. Move away and it goes back. Business does the same. And the buttons still dim, with their own hover style.
So a hover version is a copy of something that shows while you point at it. Change what you like on it, and save it as a hover style to reuse it.