#jm-animation-UPE

1 messages ยท Page 1 of 1 (latest)

neon ibex
#

Hello ๐Ÿ‘‹
Just to make sure, the animation where the PaymentElement fades-in correct?

daring kraken
#

Correct. The small shrinking effect

neon ibex
#

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.

daring kraken
#

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

daring kraken
#

It looks like it is the one used by this css var --p-outerFrameHeightTransitionDuration

stiff badge
#

Hi ๐Ÿ‘‹ I'm stepping in for @neon ibex

#

Does that suggestion meet your needs?

daring kraken
#

Nope, it didn't

#

Can you help me to get rid of the frame height transition, please?

stiff badge
daring kraken
#

Is there a way to specify the iframe height in order to not do that animation?