Advertisement
Guest User

TimerRaund.vue

a guest
Oct 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. <template>
  2. <div v-if='checked'>
  3. <b-container class="bv-example-row">
  4. <b-row class="text-center">
  5. <b-col>
  6. <h1>До следующей пары: </h1>
  7. </b-col>
  8. <b-col>
  9. <div class="timer">
  10. <ul id=timer-ones>
  11. <li>9</li>
  12. <li>8</li>
  13. <li>7</li>
  14. <li>6</li>
  15. <li>5</li>
  16. <li>4</li>
  17. <li>3</li>
  18. <li>2</li>
  19. <li>1</li>
  20. <li>0</li>
  21. </ul>
  22. </div>
  23. </b-col>
  24.  
  25. <!-- <b-col>
  26. <img src="../assets/Pacman.svg"></svg>
  27. </b-col> -->
  28. </b-row>
  29. </b-container>
  30. </div>
  31. </template>
  32.  
  33. <script>
  34. export default {
  35. name: 'TimerAfterRaund',
  36. data() {
  37. return {
  38. // image: ''
  39. }
  40. },
  41. computed: {
  42. checked() {
  43. return this.$store.getters.timer;
  44. },
  45. }
  46. }
  47. </script>
  48.  
  49. <style>
  50. .timer { display: inline-block; height: 2.5rem; overflow: hidden; }
  51. .timer li{
  52. color:#FFF;
  53. font-family: 'Roboto', Helvetica;
  54. font-size:2.5rem;
  55. }
  56. .timer ul {
  57. display: inline-block;
  58. list-style-type: none;
  59. width: 2.5rem;
  60. padding-left: 0;
  61. margin-top: 0;
  62. position: relative;
  63. top: -2.5rem;
  64. line-height: 2.5rem;
  65. }
  66. @keyframes rollover {
  67. 0% {
  68. top: 0px;
  69. }
  70. 10% {
  71. top: -2.5rem;
  72. }
  73. 20% {
  74. top: -5rem;
  75. }
  76. 30% {
  77. top: -7.5rem;
  78. }
  79. 40% {
  80. top: -10rem;
  81. }
  82. 50% {
  83. top: -12.5rem;
  84. }
  85. 60% {
  86. top: -15rem;
  87. }
  88. 70% {
  89. top: -17.5rem;
  90. }
  91. 80% {
  92. top: -20rem;
  93. }
  94. 90% {
  95. top: -22.5rem;
  96. }
  97. 100% {
  98. top: -25rem;
  99. }
  100. }
  101.  
  102. #timer-ones {
  103. animation: rollover 10s cubic-bezier(1.000, 0.005, 0.995, 0.090) infinite;
  104. }
  105.  
  106. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement