You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
579 B
32 lines
579 B
10 years ago
|
window.addEvent('domready', function(){
|
||
|
var b = $(document.body),
|
||
|
login_page = b.hasClass('login');
|
||
|
|
||
|
if(login_page){
|
||
|
|
||
|
var form = b.getElement('form'),
|
||
|
els = b.getElements('h1, .username, .password, .remember_me, .button');
|
||
|
els.each(function(el, nr){
|
||
|
|
||
|
dynamics.css(el, {
|
||
|
opacity: 0,
|
||
|
translateY: 50
|
||
|
});
|
||
|
|
||
|
dynamics.animate(el, {
|
||
|
opacity: 1,
|
||
|
translateY: 0
|
||
|
}, {
|
||
|
type: dynamics.spring,
|
||
|
frequency: 200,
|
||
|
friction: 300,
|
||
|
duration: 800,
|
||
|
anticipationSize: 175,
|
||
|
anticipationStrength: 400,
|
||
|
delay: nr * 100
|
||
|
});
|
||
|
|
||
|
});
|
||
|
}
|
||
|
});
|