_animation.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. $animate: all 0.2s ease-in-out;
  2. #text_figli{
  3. z-index: 999;
  4. opacity: 1;
  5. p{
  6. & > a{
  7. z-index: 999;
  8. &:before,
  9. &:after {
  10. content: "";
  11. position: absolute;
  12. bottom: -1px;
  13. width: 0px;
  14. height: 1px;
  15. margin: 1px 0 0;
  16. transition: $animate;
  17. transition-duration: 0.3s;
  18. opacity: 0;
  19. background-color: black;
  20. }
  21. &::before{
  22. left: 50%;
  23. }
  24. &:after{
  25. right: 50%;
  26. }
  27. &:hover {
  28. cursor: pointer;
  29. &:before,
  30. &:after {
  31. width: 100%;
  32. opacity: 1;
  33. }
  34. &:before,
  35. &:after {
  36. width: 50%;
  37. }
  38. }
  39. #icone_list{
  40. transition: 1s 0.5s margin-left,0.8s 0.3s opacity;
  41. .hamburger{
  42. &.hamburger--slider{
  43. .hamburger-inner{
  44. transform: translate3d(0,5px,0) rotate(0deg);
  45. transition: 0s 0.2s transform;
  46. &:after{
  47. transform: translate3d(0,-10px,0) rotate(0deg);
  48. transition: 0.2s 0.2s transform;
  49. }
  50. }
  51. }
  52. }
  53. }
  54. &.open{
  55. #icone_list{
  56. transition: 0.5s margin-left, 0.5s opacity;
  57. .hamburger{
  58. &.hamburger--slider{
  59. .hamburger-inner{
  60. transform: translate3d(0,5px,0) rotate(45deg);
  61. transition: 0.8s 0.2s transform;
  62. &:after{
  63. transform: translate3d(0,-10px,0) rotate(90deg);
  64. transition: 1s 0.2s transform;
  65. }
  66. }
  67. }
  68. }
  69. }
  70. }
  71. &#figureslibres{
  72. &::before, &::after{
  73. bottom: 5px;
  74. }
  75. }
  76. }
  77. }
  78. &.hidden{
  79. opacity: 0;
  80. transition: 0.3s opacity ease;
  81. }
  82. }
  83. .circle_hover{
  84. position: absolute;
  85. width: 0px;
  86. height: 0px;
  87. transform: translate(-50%, -50%);
  88. z-index: 0;
  89. transition: height .2s, width .2s;
  90. &.open{
  91. width: 200px;
  92. height: 200px;
  93. transition: height .5s, width .5s;
  94. }
  95. &.figureslibres{
  96. background:
  97. url("/user/themes/figureslibres/images/figures_libres.svg") center no-repeat;
  98. background-size: contain;
  99. }
  100. &.publique{
  101. background:
  102. url("/user/themes/figureslibres/images/publique.svg") center no-repeat;
  103. background-size: contain;
  104. }
  105. &.sociale{
  106. background:
  107. url("/user/themes/figureslibres/images/sociale.svg") center no-repeat;
  108. background-size: contain;
  109. }
  110. &.culturelle{
  111. background:
  112. url("/user/themes/figureslibres/images/culturelle.svg") center no-repeat;
  113. background-size: contain;
  114. }
  115. &.commanditaires{
  116. background:
  117. url("/user/themes/figureslibres/images/commanditaires.svg") center no-repeat;
  118. background-size: contain;
  119. }
  120. &.logiciels-libres{
  121. background:
  122. url("/user/themes/figureslibres/images/logiciels_libres.svg") center no-repeat;
  123. background-size: contain;
  124. }
  125. }