_animation.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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: 50%;
  14. height: 1px;
  15. margin: 1px 0 0;
  16. transition: $animate;
  17. transition-duration: 0.3s;
  18. opacity: 1;
  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. #item_list{
  83. p{
  84. & > a {
  85. cursor: pointer;
  86. &:before,
  87. &:after {
  88. width: 100%;
  89. opacity: 1;
  90. }
  91. &:before,
  92. &:after {
  93. width: 50%;
  94. }
  95. }
  96. }
  97. }
  98. }
  99. .circle_hover{
  100. position: absolute;
  101. width: 0px;
  102. height: 0px;
  103. transform: translate(-50%, -50%);
  104. z-index: 0;
  105. transition: height .2s, width .2s;
  106. &.open{
  107. width: 200px;
  108. height: 200px;
  109. transition: height .5s, width .5s;
  110. }
  111. &.figureslibres{
  112. background:
  113. url("/user/themes/figureslibres/images/figures_libres.svg") center no-repeat;
  114. background-size: contain;
  115. }
  116. &.publique{
  117. background:
  118. url("/user/themes/figureslibres/images/publique.svg") center no-repeat;
  119. background-size: contain;
  120. }
  121. &.sociale{
  122. background:
  123. url("/user/themes/figureslibres/images/sociale.svg") center no-repeat;
  124. background-size: contain;
  125. }
  126. &.culturelle{
  127. background:
  128. url("/user/themes/figureslibres/images/culturelle.svg") center no-repeat;
  129. background-size: contain;
  130. }
  131. &.commanditaires{
  132. background:
  133. url("/user/themes/figureslibres/images/commanditaires.svg") center no-repeat;
  134. background-size: contain;
  135. }
  136. &.logiciels-libres{
  137. background:
  138. url("/user/themes/figureslibres/images/logiciels_libres.svg") center no-repeat;
  139. background-size: contain;
  140. }
  141. }