Johannes Zellner 10 yıl önce
ebeveyn
işleme
5e538174ad
3 değiştirilmiş dosya ile 4 ekleme ve 9 silme
  1. 1 1
      beam.css
  2. 3 8
      beam.js
  3. 0 0
      createContentArchillect.js

+ 1 - 1
beam.css

@@ -28,7 +28,7 @@ content {
 }
 
 .animation-hueify {
-    animation-duration: 5s;
+    animation-duration: 10s;
     animation-name: hueify;
     animation-timing-function: linear;
     animation-iteration-count: infinite;

+ 3 - 8
beam.js

@@ -29,14 +29,9 @@ $(function () {
             nextContentContainer.css('background-image', 'url("' + img + '")');
             nextContentContainer.css('background-repeat', random(['no-repeat', 'space', 'repeat']));
             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;
             nextContentContainer = curContentContainer;

+ 0 - 0
createContent.js → createContentArchillect.js