Open jrubenoff opened 10 years ago
What is the sequence of class addition/removal that you are styling for?
So... I keep reminding myself of additional complexity. I've created the branch animations
to reflect the changes below.
.is-opening
class (not .is-hidden
).is-opening
is removed per element on animationEnd.is-opening
(no animation, since the entire form should animate in as per #5)We should have a better way to communicate this stuff than HTML / CSS prototypes that aren't in the repo. Normally I just implement this stuff myself and work through the complexity in code. Or maybe this is just good practice for both of us?
It's trickier with React, but there are solutions, albeit ones that may still be in flux (no pun). Other frameworks that are jQuery-based are a bit more directly portable from the mocks.
Just realized that we still need the
.is-hidden
class for the opening animation.Note how "Link" and "Video" start out opaque, and then suddenly disappear when sliding into place. Instead, they should become progressively visible. (To be clear, the bug isn't specific to those two buttons, but the delay is sufficiently long enough on the last two buttons that you can see the problem easily.)
Assigning this to you because the only clean way I can think of to do this involves the
animationEnd
event in public/js/script.js. #3 referred to how this event was not being fired if you started a post and returned back to the form.