Small fixes

This commit is contained in:
RainLoop Team 2016-11-11 22:48:47 +03:00
parent 930f6dbb6d
commit d3f8fa4308
4 changed files with 13 additions and 17 deletions

View file

@ -2,10 +2,15 @@
#rl-bg {
z-index: -1;
position: absolute;
left: -0;
right: -25px;
left: 0;
right: 0;
top: 0;
bottom: -25px;
bottom: 0;
&.animated {
right: -25px;
bottom: -25px;
}
}
#rl-content {

View file

@ -490,6 +490,8 @@ class LoginUserView extends AbstractViewNext
winHeightHalf = winHeight / 2,
winWidthHalf = winWidth / 2;
$bg.addClass('animated');
$('#rl-app').on('mousemove', _.throttle((e) => {
$bg.css({
top: height * (e.pageY - winHeightHalf) * -1 - movementStrength,