#jm-animation-UPE
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Just to make sure, the animation where the PaymentElement fades-in correct?
Correct. The small shrinking effect
So you can do this to get rid of all transitions:
const elements = stripe.elements({ clientSecret, appearance: { theme: 'none', rules: { '.Action, .Block, .BlockAction, .Button, .CheckboxInput, .CheckboxLabel, .CodeInput, .Error, .Icon, .Input, .Label, .MenuAction, .MenuIcon, .PickerAction, .PickerItem, .RedirectText, .SecondaryLink, .Switch, .SwitchControl, .Tab, .TabIcon, .TabLabel, .TermsLink, .TermsText, .Text': { transition: 'none', }, }, }, });
However, that doesn't prevent the animated fade through all the card brands, which I don't think can be turned off.
That also doesn't stop the fade from one method of payment to another.
Ok let me try it, I just want to load the PaymentElement without any effect, it is ok if there are effects while the user is interacting with, but not on load
It looks like it is the one used by this css var --p-outerFrameHeightTransitionDuration
Nope, it didn't
Can you help me to get rid of the frame height transition, please?
I do not know if that is configurable. All the options for our Appearance API can be found here: https://stripe.com/docs/elements/appearance-api
Is there a way to specify the iframe height in order to not do that animation?