You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example I'd want all content to fadeIn between navigation, except #banner, which should use bounceIn. It seems that this is not possible with the current options.
I've not been able to find a way to achieve easily.
I'm suggesting allowing data-turbolinks-animate-animation to be added to child elements, effectively disabling disabling the parents animation on that element (kind of like persisting at the moment), and instead applying the animation specified by the data attribute, eg:
Regarding your example, it should be possible to fadein the page section by moving the animation argument from the body element to section#page, right?
Regardless, I like your suggestion of child elements overwriting the propagated animation. Seems intuitive to me. If you have some time to spare, I'd definitely be willing to review a pull request.
Hi,
First of all, thanks for this awesome library!
I'm trying to animate page changes, where a specific element needs a different appear/disappear animation than the rest of the page.
Example markup:
In this example I'd want all content to
fadeIn
between navigation, except #banner, which should usebounceIn
. It seems that this is not possible with the current options.I've not been able to find a way to achieve easily.
I'm suggesting allowing
data-turbolinks-animate-animation
to be added to child elements, effectively disabling disabling the parents animation on that element (kind of like persisting at the moment), and instead applying the animation specified by the data attribute, eg:What do you think?
The text was updated successfully, but these errors were encountered: