Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. <div class="txtscroll container">
  2. <p class="marquee" id="overviewContent" style="text-align:center"></p>
  3. </div>
  4.  
  5. .container {
  6. width: 80%;
  7. height: 8em;
  8. margin: 1em auto;
  9. overflow: hidden;
  10. background: white;
  11. position: relative;
  12. box-sizing: border-box;
  13. }
  14.  
  15. .marquee {
  16. top: 6em;
  17. position: relative;
  18. box-sizing: border-box;
  19. -moz-box-sizing: border-box;
  20. animation: marquee 15s linear infinite;
  21. -webkit-animation:marquee 15s linear infinite;
  22.  
  23. }
  24.  
  25. .marquee:hover {
  26. animation-play-state: paused;
  27. -webkit-animation-play-state: paused;
  28. }
  29.  
  30. /* Make it move! */
  31. @keyframes marquee {
  32. 0% { top: 8em }
  33. 100% { top: -11em }
  34. }
  35. @-webkit-keyframes marquee {
  36. 0% { top: 8em }
  37. 100% { top: -11em }
  38. }
  39.  
  40. /* Make it look pretty */
  41. .txtscroll .marquee {
  42. margin: 0;
  43. padding: 0 1em;
  44. line-height: 1.5em;
  45. font: 0.9em vardana;
  46. }
  47.  
  48. .txtscroll:before, .txtscroll::before,
  49. .txtscroll:after, .txtscroll::after {
  50. left: 0;
  51. z-index: 1;
  52. content: '';
  53. position: absolute;
  54. pointer-events: none;
  55. width: 100%; height: 2em;
  56. background-image: linear-gradient(180deg, #FFF, rgba(255,255,255,0));
  57. }
  58.  
  59. .txtscroll:after, .txtscroll::after {
  60. bottom: 0;
  61. transform: rotate(180deg);
  62. transform: rotate(180deg);
  63. }
  64.  
  65. .txtscroll:before, .txtscroll::before {
  66. top: 0;
  67. }
  68.  
  69. for (var i = 0; i < models.length; i++) {
  70. $("#overviewContent").append("<br/>" + models[i].YearProcessed + " " + monthInText(models[i].MonthProcessed) + "<span>&nbsp;</span><i>" + models[i].TotalProduction + "Kg</i>");
  71. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement