_animation.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. }
  72. }
  73. &.hidden{
  74. opacity: 0;
  75. transition: 0.3s opacity ease;
  76. }
  77. }
  78. .circle_hover{
  79. position: absolute;
  80. width: 0px;
  81. height: 0px;
  82. transform: translate(-50%, -50%);
  83. z-index: 0;
  84. transition: height .2s, width .2s;
  85. &.open{
  86. width: 200px;
  87. height: 200px;
  88. transition: height .5s, width .5s;
  89. }
  90. &.publique{
  91. background:
  92. url("/user/themes/figureslibres/images/forme2.svg") center no-repeat;
  93. background-size: contain;
  94. }
  95. &.sociale{
  96. background: $color_sociale;
  97. border-radius: 100px;
  98. }
  99. &.culturelle{
  100. background:
  101. url("/user/themes/figureslibres/images/forme3.svg") center no-repeat;
  102. background-size: contain;
  103. }
  104. &.commanditaires{
  105. background:
  106. url("/user/themes/figureslibres/images/forme4.svg") center no-repeat;
  107. background-size: contain;
  108. }
  109. }