_animation.scss 2.4 KB

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