diff --git a/animate.css b/animate.css index 4073d61..5665f72 100644 --- a/animate.css +++ b/animate.css @@ -223,6 +223,17 @@ animation: BondFlash 3s linear infinite; } +#result0 { + margin: auto; + transition: transform 2s; + transform-style: preserve-3d; + left: 0; + right:0; + top: 0; + bottom: 0; + width: 320px; + height: 580px; +} #result { margin: auto; transition: transform 2s; @@ -303,6 +314,16 @@ img.prize1 { max-width: 150px; max-height: 150px; } +img.prize0 { + position: absolute; + margin: auto; + left: 0; + right:0; + top: 0; + bottom: 0; + max-width: 150px; + max-height: 150px; +} .bondbg { background-color: hsla(0,0%,100%,.6); @@ -348,13 +369,13 @@ img.prize1 { } .ring8>.plane { - height: 150px; - width: 150px + height: 100px; + width: 100px } .ring82>.plane { - height: 150px; - width: 150px + height: 100px; + width: 100px } .col-xs-4>.showNum { @@ -389,4 +410,29 @@ img.prize1 { right:0; top: 0; bottom: 0; +} +#bb0 { + max-width: 100px; + max-height: 100px; + /* display: block; */ + position: absolute; + margin: auto; + left: 0; + right:0; + top: 0; + bottom: 0; +} + +.backnum { + position: absolute; + margin: auto; + left: 0; + right:0; + top: 0; + bottom: 0; + width: 140px; + height: 220px; + background-color: hsla(0,0%,100%,.5); + /* border: 1px solid #fff; */ + border-radius: 100%; } \ No newline at end of file diff --git a/change.js b/change.js index 95efc7c..d960d5c 100644 --- a/change.js +++ b/change.js @@ -24,6 +24,7 @@ var toggleResult = function(num){ var toggleSecondPrize = function() { $(".NumRolling").children("img").css("display", "none"); + $(".NumRolling").children(".backnum").css("display", "none"); $(".NumRolling").children("ul").css("display", "inherit"); $(".row").css("transform", "translateY(2500px)"); $("#result1").parent().css("transform", "translateY(2500px)"); @@ -43,4 +44,29 @@ var toggleFirstPrize = function() { $("#bond0").parent().parent().css("transform", "translateY(0px) translateZ(-250px) rotateZ(45deg)"); $("#card0").parent().parent().css("transform", "translateY(0px) translateZ(-380px)"); $("#result11").parent().css("transform", "translateY(2250px)"); + $("#result0").parent().css("transform", "translateY(2250px)"); + $("#num1").children("ul").css("display", "inherit"); + $("#num1").children("img").css("display", "none"); + // 清空row + $("#num1").children("ul").children("li").children("img").attr("src", ""); + $("#num2").css("background-image",""); + $("#num3").children("img").attr("src",""); +} +var toggleSpecialPrize = function() { + $(".NumRolling").children("img").css("display", "none"); + $(".NumRolling").children("ul").css("display", "inherit"); + $(".row").css("transform", "translateY(2500px)"); + $("#result1").parent().css("transform", "translateY(2500px)"); + // $("#result").css("display", "none"); + $("#bg0").parent().parent().css("transform", "translateY(0px) translateZ(-250px)"); + $("#bond0").parent().parent().css("transform", "translateY(0px) translateZ(-250px) rotateZ(45deg)"); + $("#card0").parent().parent().css("transform", "translateY(0px) translateZ(-380px)"); + $("#result11").parent().css("transform", "translateY(2250px)"); + $("#result0").parent().css("transform", "translateY(2250px)"); + $("#num1").children("img").css("display", "inherit"); + $("#num1").children("ul").css("display", "none"); + // 清空row + $("#num1").children("img").attr("src", ""); + $("#num2").css("background-image",""); + $("#num3").children("img").attr("src",""); } \ No newline at end of file diff --git a/index.html b/index.html index 4dcbec2..53cd2de 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@
-
+
@@ -63,9 +63,10 @@
-
-