|
@@ -29,14 +29,9 @@ $(function () {
|
|
|
nextContentContainer.css('background-image', 'url("' + img + '")');
|
|
nextContentContainer.css('background-image', 'url("' + img + '")');
|
|
|
nextContentContainer.css('background-repeat', random(['no-repeat', 'space', 'repeat']));
|
|
nextContentContainer.css('background-repeat', random(['no-repeat', 'space', 'repeat']));
|
|
|
nextContentContainer.css('background-size', random(['cover', 'contain', 'unset', '50%', '120%', '30%']));
|
|
nextContentContainer.css('background-size', random(['cover', 'contain', 'unset', '50%', '120%', '30%']));
|
|
|
-
|
|
|
|
|
- if (random(['fade', 'slide']) === 'fade') {
|
|
|
|
|
- curContentContainer.fadeOut();
|
|
|
|
|
- nextContentContainer.fadeIn();
|
|
|
|
|
- } else {
|
|
|
|
|
- curContentContainer.slideToggle();
|
|
|
|
|
- nextContentContainer.slideToggle();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ curContentContainer.fadeOut();
|
|
|
|
|
+ nextContentContainer.fadeIn();
|
|
|
|
|
|
|
|
var tmp = nextContentContainer;
|
|
var tmp = nextContentContainer;
|
|
|
nextContentContainer = curContentContainer;
|
|
nextContentContainer = curContentContainer;
|