超炫酷jQuery和CSS3登录界面设计

超炫酷jQuery和CSS3登录界面设计

这是一款超炫酷jQuery和CSS3登录界面设计。在该登录界面中,登录框被聚焦或鼠标移动到关闭按钮,以及关闭登录框时,都会有炫酷的动画效果。

使用方法

在页面中引入下面的文件。

1
2
3
4
5
<link rel="stylesheet" type="text/css" href="assets/css/demo.css" />
<script src="assets/js/jquery-1.11.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js"></script>
<script src="https://unpkg.com/imagesloaded@4.1.4/imagesloaded.pkgd.min.js"></script>
<script src="assets/js/demo.js"></script>

HTML结构
登录界面的HTML结构如下。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<div class="modal invisible">
  <div class="monster-open-close" style="background-image: url(assets/img/m-open-close.png)"></div>
  <div class="modal-inner" style="background-image: url(assets/img/landscape.png);">
    <p class="close"><span></span></p>
    <div class="modal-body">
      <div class="monster-close" style="background-image: url(assets/img/m-close.png)"><span>Are you sure?</span></div>
      <h2>Stay up-to-date with our campaign</h2>
       
      <ul>
        <li>Latest news</li>
        <li>Promise no spam!</li>
      </ul>
 
      <div class="form">
        <div class="form-holder">
 
          <div class="monster-signup"><span style="background-image: url(assets/img/m-signup.png)"></span></div>
 
          <div class="form-holder-inner">
            <form>
              <div class="group">
                <input type="text" name="email" id="email" placeholder="Your email" autocomplete="off" required>
              </div>
 
              <div class="submit">
                <input type="submit" class="submit-btn" value="Sign up" disabled="disabled">
              </div>
            </form>
            <div class="thank-you-holder">
              <span>Thank You, Human!</span>
            </div>
          </div>
           
        </div>
      </div>
 
    </div>
     
  </div>
   
</div>
<section class="trigger">
  <h1>Stay up-to-date with our campaign</h1>
  <button id="button">SIGN UP</button>
</section>
当前内容只有登录了才能查看,如果您已经注册,请登录
2

发表评论