Advertisement
Whistik

Untitled

Aug 8th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.48 KB | None | 0 0
  1. var boxWidth = $(".drop-item-roll").width();
  2. var currentWidth = 0;
  3. for(var i=0;i<r;i++){
  4. currentWidth += boxWidth;
  5. }
  6. $('.roll-scene-ul').css({"left":"0px"}).animate({"left":"-="+currentWidth+"px", start:function(){
  7. AudioStopped = false;
  8. playRollSound();
  9. }}, 10000, function(){
  10. getWinItem(r);
  11. CaseIsOpened = false;
  12. CaseRollButton.text('Open case');
  13. CaseRollButton.removeClass('roll-start-active');
  14. CaseRollButton.addClass('roll-start');
  15. CaseRollButton.css('color', '#fff');
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement