patrickkeenan / sketch-framer-states

Export artboards from Sketch as states for Framer
20 stars 0 forks source link

Switching CSS styles as part of state change doesn't work for undefined styles #18

Open cleercode opened 10 years ago

cleercode commented 10 years ago

See switchStyles function I added: https://github.com/patrickkeenan/sketch-framer-states/commit/e624921525145939f471b4599c18fc9ea20aa7bf

Need to make it work for styles that aren't defined since they're default values (ex. switch from state with defined box-shadow to one without and it just keeps the shadow, but instead it should switch to none).

This is a stopgap until Framer properly animates these CSS properties.