Using Blacksmith for transitions

Hello Everyone,
I’m building a Card type structure and I’m using Blacksmith to change the color and possibly the scale “on hover”. I want to transition these effects so there smooth. Transitioning in the affect is kinda the default in Blacksmith but I’m looking for a way to transition the affects back out as well, so it’s smooth coming and going out. Any pointers on how to do this?

CSS transitions like this require transforms to be applied to both the normal and hover states. You’ll need two Blacksmith stylesheets. One for the normal state and one for the hover state.

1 Like

makes total sense, thanks Adam!

The transform could event be a scale of 1 or a rotation of 0, etc. It just needs it for both states. You also need a transition for both as well.

2 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.