ejirocodes / vue3-otp-input

🐗 A fully customisable OTP input component for Vue 3.x
https://npm.im/vue3-otp-input
116 stars 25 forks source link

input onchanged class #33

Closed jiexaspb closed 1 year ago

jiexaspb commented 1 year ago

Hello

I would like to add a class to the input when a number is entered in this input. For example, I want to add a bounce class so that a digit input has a ripple effect when the digit is added.

Could you add such a parameter?

ejirocodes commented 1 year ago

@jiexaspb see this section. There's a class added when an input is filled. So you could have something like

input.otp-input.is-complete:focus

image

Let me know if this solves it for you

ejirocodes commented 1 year ago

@jiexaspb, I'll close this for now. Please open a new issue if it still occurs