Shake a login form on error

前端 未结 9 1194
猫巷女王i
猫巷女王i 2020-12-21 02:39

I have successfully built a login form using ajax and want to add a shake effect to the form when the user enters incorrect details. I have the function in place that will f

9条回答
  •  失恋的感觉
    2020-12-21 03:20

    Its better to use CSS to this instead of JS. CSS uses less resources(is faster) and its simpler. You can find good (and 'ready to use') examples here: https://daneden.me/animate/

提交回复
热议问题