Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. @keyframes loadbar {
  2. from {
  3. width: 0px;
  4. }
  5. to {
  6. width: 450px;
  7. }
  8. }
  9.  
  10. @mixin ballb($yaxis: 0) {
  11. transform: translate3d(0, $yaxis, 0);
  12. }
  13.  
  14. @keyframes packit {
  15. 1% { @include ballb(-400px); }
  16. 20%, 40%, 60%, 80%, 95%, 99%, 100% { @include ballb() }
  17. 30% { @include ballb(-80px); }
  18. 50% { @include ballb(-40px); }
  19. 70% { @include ballb(-30px); }
  20. 90% { @include ballb(-15px); }
  21. 97% { @include ballb(-10px); }
  22. }
  23.  
  24. .packitin {
  25. animation: packit 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  26. }
  27.  
  28. .tossitaway {
  29. @include ballb(-400px);
  30. }
  31.  
  32. line.volume-line {
  33. stroke: #333;
  34. stroke-dasharray: 2,1;
  35. stroke-width: 1;
  36. stroke-opacity: 0.7;
  37. }
  38.  
  39. @mixin itemp($yaxis: 0px) {
  40. transform: translateY($yaxis);
  41. }
  42.  
  43. polygon.volume-line {
  44. stroke: #000;
  45. stroke-width: 1;
  46. fill-opacity: 0.9;
  47. stroke-opacity: 0.8;
  48. visibility: hidden;
  49. }
  50.  
  51. @keyframes packit {
  52. 1% {
  53. @include itemp(-600px);
  54. visibility: visible;
  55. }
  56. 70% { @include itemp(-300px); visibility: visible;}
  57. 100% { @include itemp(0.1px); visibility: visible;}
  58. }
  59.  
  60. .box-figure.packani svg polygon{
  61. @for $box from 1 through 50 {
  62. &.volume-line[data-volume-index='#{$box}']{
  63. // transform: none;
  64. // visibility:hidden;
  65. // display: block;
  66. // @include iopa(1);
  67. animation: packit 1s ($box * 0.2s) forwards;
  68. }
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement