_animation.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. }
  39. }
  40. }
  41. .circle_hover{
  42. position: absolute;
  43. width: 0px;
  44. height: 0px;
  45. background: $color_culturelle;
  46. border-radius: 500px;
  47. transform: translate(-50%, -50%);
  48. z-index: 0;
  49. transition: height .2s, width .2s;
  50. &.open{
  51. width: 200px;
  52. height: 200px;
  53. transition: height .5s, width .5s;
  54. }
  55. &.publique{
  56. background: $color_publique;
  57. }
  58. &.sociale{
  59. background: $color_sociale;
  60. }
  61. &.culturelle{
  62. background: $color_culturelle;
  63. }
  64. }