Home  >  Article  >  Web Front-end  >  CSS3 code to implement dynamic background login box_form effects

CSS3 code to implement dynamic background login box_form effects

WBOY
WBOYOriginal
2016-05-16 15:48:371630browse

Based on CSS3 dynamic background login box code. This is a dynamic background login box special effect with animated effects based on jQuery CSS3. The rendering is as follows:

The implemented code is as follows:

html code:

<div class="htmleaf-container">
    <div class="wrapper">
      <div class="container">
        <h1>Welcome</h1>

        <form class="form">
          <input type="text" placeholder="Username">
          <input type="password" placeholder="Password">
          <button type="submit" id="login-button">Login</button>
        </form>
      </div>

      <ul class="bg-bubbles">
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
      </ul>
    </div>
  </div>

  <script src="js/jquery-2.1.1.min.js" type="text/javascript"></script>
  <script>
    $('#login-button').click(function (event) {
      event.preventDefault();
      $('form').fadeOut(500);
      $('.wrapper').addClass('form-success');
    });
  </script>

This article introduces this dynamic background login box special effect with animated effects based on jQuery CSS3. I hope you will like it.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn