当前位置: 代码网 > it编程>编程语言>Javascript > CSS3实现动态背景登录框的代码

CSS3实现动态背景登录框的代码

2024年05月15日 Javascript 我要评论
基于css3动态背景登录框代码。这是一款基于jquery+css3实现的带有动画效果的动态背景登陆框特效。效果图如下:实现的代码如下:html代码:<div class="htmleaf-con

基于css3动态背景登录框代码。这是一款基于jquery+css3实现的带有动画效果的动态背景登陆框特效。效果图如下:

实现的代码如下:

html代码:

<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>

本文介绍的这款基于jquery+css3实现的带有动画效果的动态背景登陆框特效,希望大家可以喜欢。

(0)

相关文章:

版权声明:本文内容由互联网用户贡献,该文观点仅代表作者本人。本站仅提供信息存储服务,不拥有所有权,不承担相关法律责任。 如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 2386932994@qq.com 举报,一经查实将立刻删除。

发表评论

验证码:
Copyright © 2017-2025  代码网 保留所有权利. 粤ICP备2024248653号
站长QQ:2386932994 | 联系邮箱:2386932994@qq.com