amazing animated and stylish login / register jquery form which is simple to use.
HTML
01 | < img id = "login" src = "result.png" alt = "" /> |
02 | < img id = "submit" src = "submit.png" alt = "" /> |
04 | < div id = "Login_form" class = "loginform" > |
05 | < form action = "#" method = "post" > |
09 | < div class = "form-item" > |
11 | < label for = "edit-name" >Username:</ label > |
12 | < input id = "edit-name" class = "form-text required" maxlength = "60" name = "name" size = "15" type = "text" /></ div > |
15 | < div class = "form-item" > |
17 | < label for = "edit-pass" >Password:</ label > |
18 | < input id = "edit-pass" class = "form-text required" maxlength = "60" name = "pass" size = "15" type = "password" /></ div > |
24 | < div id = "SignupForm" class = "loginform" > |
25 | < form action = "#" method = "post" > |
29 | < div class = "form-item" > |
31 | < label for = "edit-name" >Email:</ label > |
32 | < input id = "edit-name" class = "form-text required" maxlength = "60" name = "name" size = "15" type = "text" /></ div > |
35 | < div class = "form-item" > |
37 | < label for = "edit-name" >Username:</ label > |
38 | < input id = "edit-name" class = "form-text required" maxlength = "60" name = "name" size = "15" type = "text" /></ div > |
41 | < div class = "form-item" > |
43 | < label for = "edit-pass" >Password:</ label > |
44 | < input id = "edit-pass" class = "form-text required" maxlength = "60" name = "pass" size = "15" type = "password" /></ div > |
52 | < div class = "module-bg" > |
53 | < a id = "Log-in" class = "TopButtons" href = "#" >Login</ a > |
54 | < a id = "signUp" class = "TopButtons" href = "#" >SignUp</ a ></ div > |
JQuery Code
$(document).ready(function() {
$('#nav-bar').fadeIn();
$('#Log-in').click(function() {
$('#Log-in').css('background-color', '#006699');
$('#signUp').css('background-color', '#000000');
$('#submit').hide().css({'left' : '0px'});
$('#SignupForm').hide().css({'top' : '0px'});
$('#login').show().animate({
left : '52%',
},400,function(){
$('#login').css({'-webkit-transform' : 'rotate(-0deg)','-moz-transform' : 'rotate(-0deg)' });
});
///
$('#Login_form').show().animate({
top : '60px',
},700,function(){
//$('#image').css({'-webkit-transform' : 'rotate(-90deg)','-moz-transform' : 'rotate(-90deg)' });
});
});
$('#signUp').click(function() {
$('#signUp').css('background-color', '#006699');
$('#Log-in').css('background-color', '#000000');
$('#login').hide().css({'left' : '0px'});
$('#Login_form').hide().css({'top' : '0px'});
$('#submit').show().animate({
left : '52%',
},400,function(){
$('#submit').css({'-webkit-transform' : 'rotate(-0deg)','-moz-transform' : 'rotate(-0deg)' });
});
///
$('#SignupForm').show().animate({
top : '60px',
},700,function(){
//$('#image').css({'-webkit-transform' : 'rotate(-90deg)','-moz-transform' : 'rotate(-90deg)' });
});
});
});
No comments:
Post a Comment