dillon1000/react

Commit

Modify sample CSS so that it works in Safari

When animating the max-height property in Safari, entering the leave state would trigger an animation to `max-height: 0`. Then when the active state kicked in, it would jump and didn't really look right. Moving the `transition` css property to the active version fixed the issue for me and worked on Safari, Chrome and Firefox. Unfortunately I'm not in a position to test in IE at the moment, but I'll do that at my first convenience tomorrow.
Browse files
Changed paths1 file
First-parent comparison
M docs/docs/10.1-animation.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…