[fix] Remove useless 'move' CSS class.

This commit is contained in:
opi 2016-05-23 20:55:25 +02:00
parent 9f0d85cb6c
commit 604a76759d
2 changed files with 5 additions and 8 deletions

View file

@ -96,10 +96,6 @@ button {
padding: 5px;
}
.move {
transition: margin-left 0.2s ease-in-out;
}
.placehold {
font-size: 0.0001em;
color: transparent;
@ -196,6 +192,7 @@ button {
width: 200%;
height: 100%;
min-height: 150px;
transition: margin-left 0.15s ease-in-out;
}
#slideBack, #slideTo, #main {

View file

@ -221,19 +221,19 @@
if (store.get('slide') == 'back') {
store.clear('slide');
$('#slideBack').css('display', 'none');
$('#slider-container').removeClass('move').css('margin-left', '-100%');
$('#slider-container').css('margin-left', '-100%');
$('#slideTo').show().html($('#main').html());
leSwap();
$('#slider-container').addClass('move').css('margin-left', '0px');
$('#slider-container').css('margin-left', '0px');
// Slide to effect
} else if (store.get('slide') == 'to') {
store.clear('slide');
$('#slideTo').css('display', 'none');
$('#slider-container').removeClass('move').css('margin-left', '0px');
$('#slider-container').css('margin-left', '0px');
$('#slideBack').show().html($('#main').html());
leSwap();
$('#slider-container').addClass('move').css('margin-left', '-100%');
$('#slider-container').css('margin-left', '-100%');
} else {
leSwap();