项目作者: nnluukhtn

项目描述 :
Form Animation: when form validation <3 animate.css
高级语言: HTML
项目地址: git://github.com/nnluukhtn/formAnimation.git
创建时间: 2016-04-17T10:53:41Z
项目社区:https://github.com/nnluukhtn/formAnimation

开源协议:MIT License

下载


jQuery Form Animation Plugin - Form Animation: when form validation <3 animate.css

The jQuery Form Animation Plugin provides drop-in animation for your existing forms, while making all kinds of customizations to fit your application really easy.

Screenshot

Screenshot

Getting Started

Downloading the required libraries

jQuery can be downloaded from https://jquery.com/

jQuery Validation Plugin can be downloaded from http://jqueryvalidation.org/

Animate.css can be downloaded from https://daneden.github.io/animate.css/

Including it on your page

Include jQuery and the plugin on a page. Then select a form to add animation and call the formAnimation method.

  1. <head>
  2. <link href='animate.css' media='all' rel='stylesheet'>
  3. </head>
  4. ...
  5. <body>
  6. <form>
  7. <input required>
  8. </form>
  9. <script src="jquery.js"></script>
  10. <script src="jquery.validate.js"></script>
  11. <script src="formAnimation.js"></script>
  12. <script>
  13. $("form").formAnimation({ animatedClass: 'shake' });
  14. </script>
  15. </body>

Alternatively include jQuery and the plugin via requirejs in your module.

  1. define(["jquery", "jquery.validate", "formAnimation"], function( $ ) {
  2. $("form").formAnimation({ animatedClass: 'shake' });
  3. });

Reporting issues and contributing code

Bug reports and pull requests are welcome on GitHub at https://github.com/nnluukhtn/formAnimation.

License

Copyright © Luu Nguyen

Licensed under the MIT license.